10 2020 档案

摘要:filepath = 'C://Users/Admin/Downloads/Snipaste_2020-10-29_14-22-44.png' file = open(filepath, "rb") md = hashlib.md5() md.update(file.read()) res1 = m 阅读全文
posted @ 2020-10-29 15:07 我忘不掉 阅读(2947) 评论(0) 推荐(0)
摘要:将作者单位名称中的邮编去掉1. 通过pandas读取csv文件2. 获取某一列的值并进行类型转换3. 通过apply方法中的匿名函数进行数据的处理4. 输出到原始文件中 import pandas as pd file = "2019/万网2019.csv" data = pd.read_csv(f 阅读全文
posted @ 2020-10-12 19:42 我忘不掉 阅读(14737) 评论(0) 推荐(0)
摘要:def User_Agent(): txt = open('Pc-ua.txt', 'rb') data = txt.read().decode('utf-8') # python3一定要加上这句不然会编码报错! txt.close() # 获取txt的总行数! n = data.count('\n 阅读全文
posted @ 2020-10-12 19:36 我忘不掉 阅读(1959) 评论(0) 推荐(0)