import hashlib
file = open(r'D:\text.txt','rb')
md5 = hashlib.md5(file.read()).hexdigest()
print(md5)
python获取文件md5的方式
最新推荐文章于 2024-10-03 13:06:43 发布
import hashlib
file = open(r'D:\text.txt','rb')
md5 = hashlib.md5(file.read()).hexdigest()
print(md5)