from hashlib import md5 # 文件md def file_md5(body): md = md5() md.update(body) return md.hexdigest()