import hashlib def md5(fname): hash_md5 = hashlib.md5() with open(fname,"rb") as f: for chunk in iter(lambda :f.read(4096),b""): hash_md5.update(chunk) return hash_md5.hexdigest()
posted on 2021-09-11 15:03 达摩克利斯 阅读(1163) 评论(0) 编辑 收藏 举报