IO操作篇:

def write_to_file(content):
    with open('result.txt','a',encoding='utf-8') as f:
        f.write(content+"
")
原文地址:https://www.cnblogs.com/su-king/p/9989073.html