将print内容输出到文件

f = open("out.txt", "w")  
print(block_template, file = f)

 

posted on 2021-02-08 15:28  我尽量尽力而为  阅读(301)  评论(0)    收藏  举报

导航