aa = "12345678"
with open("数字.txt","w")as f:
f.write(aa)
#这样文件写入后不需要写aa.close()
python 文件写入自动关闭方法
猜你喜欢
转载自blog.csdn.net/AnYeZhiYin/article/details/82917084
今日推荐
周排行