将print输出的内容保存到txt文件中,需要使用Python的open()和write()函数: f = open("文件名.txt","w") f.write("要写入的内容") f.close()
python 将print输出的内容保存到txt文件中
猜你喜欢
转载自blog.csdn.net/weixin_42588555/article/details/129576952
今日推荐
周排行