摘要:
import jsonname = { 'alex':[22,'M'], 'tony':[21,'F'],}name_after = json.dumps(name)name_after = name_after.encode("utf-8") #区别于Python2f = open("data_t 阅读全文
posted @ 2017-01-08 14:09
tonyklose1984
阅读(322)
评论(0)
推荐(0)
摘要:
import hashlib#英文字符串m = hashlib.md5(b'wupeiqi')m.update(b'admin')md5value = m.hexdigest()print(md5value)#中文字符串data = '我是'm = hashlib.md5(data.encode(e 阅读全文
posted @ 2017-01-08 11:01
tonyklose1984
阅读(369)
评论(0)
推荐(0)
浙公网安备 33010602011771号