摘要: # 批量读取txt行数 import osimport linecache# 批量获取txt行数root=r'D:\Projects\wwlln\all\xinan\201601' # 文件所在路径file_names = os.listdir(root) # 读取路径下所有文件名file_ob_l 阅读全文
posted @ 2020-05-22 22:21 zmlog 阅读(1083) 评论(0) 推荐(0)
摘要: ## 小文件#file=r"c:\users\zm.com\desktop\20140106.txt"#count=len(open(file,'ru').readlines())#print(count)##大文件#file=r"C:\Users\zm.com\Desktop\20140224.t 阅读全文
posted @ 2020-05-22 22:13 zmlog 阅读(9235) 评论(0) 推荐(0)