with open('C:\\Users\\lysine\\Desktop\\123.txt','w') as f2:
for i in range (len(shu)):
f2.write('%d'%shu[i])
f2.write(" ")
print("写入成功!")
向文档写入整数
最新推荐文章于 2022-07-27 16:17:07 发布
with open('C:\\Users\\lysine\\Desktop\\123.txt','w') as f2:
for i in range (len(shu)):
f2.write('%d'%shu[i])
f2.write(" ")
print("写入成功!")