01 2021 档案
摘要:res = requests.get(link,).content.decode('utf8') html_ = etree.HTML(res) # 选取所有需要剔除的元素 for del_element in html_.xpath('//*[@id="newsText"]//style'): #
阅读全文
摘要:# 获取上个月的时间import datetime today = datetime.date.today() # 鉴于月份只能在1-12中,月份为1月时,年份-1,月份+11,即为去年12月时间 if today.month == 1: last_month = today.replace(yea
阅读全文