会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wstong2052
博客园
首页
新随笔
管理
2023年8月23日
python - 文件md5校验
摘要: 通过md5校验文件,我们可以判断文件内容是否改变,用python实现代码如下 import hashlib # 1.txt为空文本 with open("1.txt", "rb") as f: data = f.read() md5Old = hashlib.md5(data).hexdigest(
阅读全文
posted @ 2023-08-23 21:25 wstong
阅读(322)
评论(0)
推荐(0)
公告