Python hashlib Unicode-objects must be encoded before hashing
Python2中没有这个问题python3中hashlib.md5(data)函数中data参数的类型应该是byteshash前必须把数据转换成bytes类型Python2.7.12(default,Dec42017,14:50:18)[GCC5.4.020160609]onlinux2Type"help","copyright","credits"or"license"formoreinform