回答編集履歴

1

曜日勘違い

2020/11/28 12:49

投稿

YouheiSakurai
YouheiSakurai

スコア6142

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  def is_weekday(yyyymmdd):
16
16
 
17
- return 1 <= datetime.strptime(yyyymmdd, "%Y%m%d").weekday() <= 5
17
+ return datetime.strptime(yyyymmdd, "%Y%m%d").weekday() < 5
18
18
 
19
19
 
20
20