标签:blog utf-8 digest hash encoding nbsp imp style class
1 import hashlib 2 3 def md5(args): 4 hash = hashlib.md5(bytes(‘aaadf‘,encoding=‘utf-8‘)) 5 hash.update(bytes(args,encoding=‘utf-8‘)) 6 return hash.hexdigest()
标签:blog utf-8 digest hash encoding nbsp imp style class
原文地址:http://www.cnblogs.com/Erick-L/p/6413771.html