python中sha1 md5等用法

import hashlib sha1 = hashlib.sha1() sha1.update('a'.encode('utf-8')) sha1.update('b'.encode('utf-8')) sha1.update('c'.encode('utf-8')) 等同于: sha1.update('abc'.encode('utf-8')) hash
相关文章
相关标签/搜索