04 2020 档案
摘要:def clean(string): pattern = re.compile(r'<[^>]+>', re.S) string = pattern.sub('', string) string = string.replace('\n', ' ').replace('\r', ' ').repla
阅读全文
摘要:from pybloom_live import BloomFilter import pandas as pd df = pd.read_csv(fileName,encoding="utf-8") bf = pd.read_csv(capacity = df.shope[0]+100,error
阅读全文
摘要:这种报错一般由两种情况引起: 一、函数参数为路径而非文件名, 二、函数参数带有中文 第一种的解决就是将文件名添加到路径后即可 第二种是在read_csv()方法时指定engine为Python就可以了,当然还可以先使用 with open()函数先打开在读取 pd.read_csv(read_fil
阅读全文
摘要:list1 = ['邮箱1', '邮箱2', '邮箱3']for username_recv in list1: mailserver = "smtp.163.com" # 邮箱服务器地址 username_send = '发送方邮箱名' # 邮箱用户名 password = '邮箱名' # 邮箱密
阅读全文
摘要:import xlrdfrom xlrd import xldate_as_tupleimport jsonimport requestsimport datetimeimport openpyxlimport osimport timefrom bs4 import BeautifulSoupim
阅读全文

浙公网安备 33010602011771号