Meeting 表產生時間

# Meeting 表產生時間

weekday2n_presenter: 星期幾:幾個人

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  start_date = datetime.datetime(2023, 2, 1) end_date = datetime.datetime(2023, 8, 31) # 0: Mon # 1: Tue # 2: Wed # 3: Thu # 4: Fri # 5: Sat # 6: Sun weekday2n_presenter = { 3: 2 } while start_date < end_date: if weekday2n_presenter.get(start_date.weekday()): for _ in range(weekday2n_presenter.get(start_date.weekday())): print(start_date.strftime("%Y-%m-%d")) start_date += datetime.timedelta(days=1)