import hashlib
hash = hashlib.md5()
hash.update(text.encode('utf-8'))
print(hash.hexdigest())

 

相关文章: