---
title: "python 写文件换行"
author: "hbjava1985"
date: "2015-02-09T18:07:47Z"
tags: []
categories: ["编程语言"]
slug: "python"
draft: false
lastmod: "2015-02-09T18:07:47Z"
id: 2184684
url: "https://hbjava1985.iteye.com/blog/2184684"
---

```python

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")

```