摘要: 要求:大文件校验 import os import hashlib def func(path): file_size = os.path.getsize(path) obj = hashlib.md5() with open(path,mode='rb')as f: while file_size > 1024: content1... 阅读全文
posted @ 2019-05-13 18:25 Lowell 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-13 18:24 Lowell 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.使用walk方法 2.使用lisdir方法 3.lisdir计算文件夹大小(进阶) 阅读全文
posted @ 2019-05-13 18:22 Lowell 阅读(189) 评论(0) 推荐(0) 编辑