立即学习:https://edu.csdn.net/course/play/26676/379784?utm_source=blogtoedu
一般方法:创建
f=open(text.txt';w'):创建名为text.txt的文件,可以写入
f.write(‘life is short, you need python')
f.close()
文件打开方式:r,w,a,b,+,x等
读csv文档:import csv
立即学习:https://edu.csdn.net/course/play/26676/379784?utm_source=blogtoedu
一般方法:创建
f=open(text.txt';w'):创建名为text.txt的文件,可以写入
f.write(‘life is short, you need python')
f.close()
文件打开方式:r,w,a,b,+,x等
读csv文档:import csv