python 如何将数据写入本地txt文本文件的实现方法 一、读写txt文件1、打开txt文件file_handle=open('1.txt',mode='w')上述函数参数有(1.文件名,mode模 数据写入txt