摘要: import hashlib, os # 获取文件的md5 的函数 def getMD5(filepath): f = open(filepath, 'rb') md5bj = hashlib.md5() # 获取一个md5 加密对象 md5bj.update(f.read()) # 指定加密的信息 阅读全文
posted @ 2022-08-15 11:29 羔羊也有梦想 阅读(100) 评论(0) 推荐(0)
摘要: # 代码识别文件中的所有手机号 import re # 读取目标文本文件 def get_str(path): f = open(path, encoding='utf-8') data = f.read() f.close() return data # 正在表达式提取文本号码 def get_p 阅读全文
posted @ 2022-08-15 10:18 羔羊也有梦想 阅读(472) 评论(0) 推荐(0)
摘要: # 测试网速 from speedtest import Speedtest # pip install speedtest-cli def Testing_Speed(net): download = net.download() upliad = net.upload() print(f'下载速 阅读全文
posted @ 2022-08-15 10:06 羔羊也有梦想 阅读(475) 评论(0) 推荐(0)