摘要:
input and outputwrite lines:p = open(dst, 'w+') s=['12','34','56'] for a in s: p.write(a + '\n') p.close()read lines:p = open(dst, 'r') # s = p.read() # print s content = p.readlines() print content p.close()['12\n', '34\n', '56\n 阅读全文
posted @ 2014-03-26 23:23 wintor12 阅读(118) 评论(0) 推荐(0) 编辑