📜  如何在python代码示例中自动保存

📅  最后修改于: 2022-03-11 14:46:57.797000             🧑  作者: Mango

代码示例1
file = open("YOUR TEXT FILE.txt", "w") #w for clear all txt and type and a for append
file.write("hi" + \n) #\n for newlie optional
file.close() #to close file

#Discord: Fighter x Yt#6699 ( dm for questions )