Merge pull request #3 from Windy-Blossun/Windy-Blossun-2.1-Correction

2.1 答案改正
master
kenwoodjw 2019-03-04 17:41:11 +08:00 committed by GitHub
commit b58d0e988b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -323,9 +323,9 @@
year = input("请输入年份: ") year = input("请输入年份: ")
month = input("请输入月份: ") month = input("请输入月份: ")
day = input("请输入天: ") day = input("请输入天: ")
date1 = datetime.data(year=int(year),month=int(month),day=int(day)) date1 = datetime.date(year=int(year),month=int(month),day=int(day))
date2 = datatime.date(year=int(year),month=1,day=1) date2 = datetime.date(year=int(year),month=1,day=1)
return (date2-date1 +1).days return (date1-date2).days+1
``` ```
## 2.2 打乱一个排好序的list对象alist ## 2.2 打乱一个排好序的list对象alist
``` ```