"""
# sResult为要写入的内容,一般是字符串形式
with open("C:\\Python37\\911.txt", "w", encoding='utf-8') as f:
f.write(str(sResult))
f.close()
"""
Python——将字符串写入文本保存
最新推荐文章于 2024-03-06 10:11:52 发布
"""
# sResult为要写入的内容,一般是字符串形式
with open("C:\\Python37\\911.txt", "w", encoding='utf-8') as f:
f.write(str(sResult))
f.close()
"""