()
| 119 | |
| 120 | #获取日期 |
| 121 | def get_current_date(): |
| 122 | now = datetime.datetime.now() |
| 123 | year_str = str(now.year) |
| 124 | month_str = f"0{now.month}" if now.month < 10 else str(now.month) |
| 125 | day_str = f"0{now.day}" if now.day < 10 else str(now.day) |
| 126 | print(f"当前日期{year_str}{month_str}{day_str}") |
| 127 | return year_str + month_str + day_str |
| 128 | |
| 129 | #获取阅读列表 |
| 130 | def fetch_article_list(): |
no test coverage detected