运维网's Archiver
论坛
›
Python
› python 写文件换行
andyyuduo
发表于 2017-4-24 06:41:40
python 写文件换行
result_file=open("/Users/hbjava1985/Desktop/result.log",'w')
for index in range(len(result)):
result_file.writelines(result+","+result+","+result+"\n")
页:
[1]
查看完整版本:
python 写文件换行