您好,我是 pythonanywhere 的初学者。
我正在尝试写入 txt 文件,但它不起作用,这是我的代码:
write_file = open("/home/Debonnet/test/test.txt", "a")
write_file.write("test2")
write_file.close
但是没有任何东西被写入文件..我也尝试了“w”而不是“a”但没有任何东西
您好,我是 pythonanywhere 的初学者。
我正在尝试写入 txt 文件,但它不起作用,这是我的代码:
write_file = open("/home/Debonnet/test/test.txt", "a")
write_file.write("test2")
write_file.close
但是没有任何东西被写入文件..我也尝试了“w”而不是“a”但没有任何东西