摘要: 一、 通过readline 逐行读取: #--encoding:utf-8 with open("ha.conf","r",encoding='utf-8') as f: print(f) print(f.encoding) strline = f.readline() while strline: 阅读全文
posted @ 2016-01-31 19:29 zhoudingzhao 阅读(531) 评论(0) 推荐(0) 编辑