摘要: # 导入re模块 import re # 使用match方法进行匹配操作 result = re.match(正则表达式,要匹配的字符串) # 如果上一步匹配到数据的话,可以使用group方法来提取数据 result.group() re.match用来进行正则匹配检查 若字符串匹配正则表达式,则m 阅读全文
posted @ 2020-06-02 16:24 Hany47315 阅读(161) 评论(0) 推荐(0)
摘要: # bin2dec # 二进制 to 十进e5a48de588b662616964757a686964616f31333335336437制: int(str,n=10) def bin2dec(string_num): return str(int(string_num, 2)) # hex2de 阅读全文
posted @ 2020-06-02 14:00 Hany47315 阅读(227) 评论(0) 推荐(0)
摘要: pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com 一定要指定 信任豆瓣源,不然就算换了源 也可能会失败 2020-06-02 阅读全文
posted @ 2020-06-02 12:46 Hany47315 阅读(391) 评论(0) 推荐(0)