标签:for enc 写入 out color div bsp code odi
将输出写入文档
mytxt = open(‘out.txt‘, mode=‘a‘, encoding=‘utf-8‘) for i in range(10): print(i, file=mytxt) mytxt.close()
python中将输出写入文件
原文地址:https://www.cnblogs.com/wzy23/p/11904962.html