核心代码requests.get下载html网页bs4.BeautifulSoup分析html内容fromrequestsimportgetfrombs4importBeautifulSoupasbsfromdatetimeimportdatetimeasdtdefToday(style=1):date=dt.today()ifstyle!=1:returnf'{date.month}月{date.day}日'returnf'{date.year}-{date.month:02}-{date.day:02}