摘要:
import hashlib m=hashlib.md5() m.update('你好'.encode('utf8')) m.update('hello'.encoding('utf8')) print(m.hexdigest()) m=hashlib.sha512() m.update('你好'. 阅读全文
2018年12月6日
摘要:
常用的匹配模式: 正则表达式是根据一定的规则把字符串匹配处理 import re # msg='1-2*(60+((-40.35)/5)-(-4*3))' # print(re.findall('\D?(-?\d+\.?\d*)',msg)) print(re.findall('skye','sky 阅读全文