2018年12月6日

摘要: import hashlib m=hashlib.md5() m.update('你好'.encode('utf8')) m.update('hello'.encoding('utf8')) print(m.hexdigest()) m=hashlib.sha512() m.update('你好'. 阅读全文
posted @ 2018-12-06 16:34 BestSkye 阅读(132) 评论(0) 推荐(0) 编辑
 
摘要: 常用的匹配模式: 正则表达式是根据一定的规则把字符串匹配处理 import re # msg='1-2*(60+((-40.35)/5)-(-4*3))' # print(re.findall('\D?(-?\d+\.?\d*)',msg)) print(re.findall('skye','sky 阅读全文
posted @ 2018-12-06 16:17 BestSkye 阅读(105) 评论(0) 推荐(0) 编辑