IO操作篇:

def write_to_file(content):
    with open('result.txt','a',encoding='utf-8') as f:
        f.write(content+"\n")

 

posted on 2018-11-20 15:10  苏上话  阅读(132)  评论(0编辑  收藏  举报