我知道还有其他类似问题,但都无济于事。这是完整的代码: save_path = r'C:\Program Files (x86)\Mod Tool\Infractions\Kicks' name_of_file = whoisit completeName = os.path.join(save_path, name_of_file + ".txt") file1 = open(completeName, "w") file1.write("Username: " + whoisit + " // "+ whatisit + " // Reason: " + reason) file1.close() print("Infraction stored.") print("") print("/kick" + ":" + whoisit + ":" + reason) print("") start()为了帮助您完成操作,save_path是我要保存在其中的文件夹(txt将保存在Kicks文件夹中)
添加回答
举报
0/150
提交
取消