python文件读写demo
python按行读取文件
#! /usr/bin/python
import sys
srcFile = "test.src" #root of src file
dstFile = "test.dst" #root of dst file
sf = open(srcFile , 'r')
df = open(dstFile , 'w')
for line in sf:
#here you
原创
2013-11-24 16:06:19 ·
1051 阅读 ·
0 评论