""" # sResult为要写入的内容,一般是字符串形式 with open("C:\\Python37\\911.txt", "w", encoding='utf-8') as f: f.write(str(sResult)) f.close() """