ITeye博客

python 写文件换行

hbjava1985 · 2015-02-09 18:07 · python · 编程语言 · Markdown


result_file=open("/Users/hbjava1985/Desktop/result.log",'w')
for index in range(len(result)):
    result_file.writelines(result[index][0]+","+result[index][1]+","+result[index][2]+"\n")

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。