用 arrow 循环指定日期区间

 start = arrow.get('2022-03')
 end = arrow.get('2023-07')

 while start <= end:
     year = start.year
     print(year, start.month, start.format('YYYY-MM-DD'))
     get_bi110120_report(start)
     start = start.shift(months=1)

你可能感兴趣的:(笔记,python,前端,javascript,数据库)