赞
踩
# 指定文件得到它的文件MD5值 import sys import hashlib import os.path # filename = sys.argv[1] filename = 'E:\\mycode\\list\\10086.apk' if os.path.isfile(filename): fp=open(filename,'rb') contents=fp.read() fp.close() print(hashlib.md5(contents).hexdigest()) else: print('file not exists')
参考文章:
https://www.jb51.net/article/138086.htm
参考文章:
https://blog.csdn.net/zheng_ruiguo/article/details/88717711
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。