d =input().split("-")
y,m,d = int(d[0]),int(d[1]),int(d[2])
is_leap_year = (y%4==0 and y%100!=0) or (y%400 == 0)
c=d
for i in range(m-1,0,-1):
c+=M[i]
if i==2 and is_leap_year:
c+=1
print(c)
这里的变量y,m,d是整数变量,但是当我在线上提交此代码时,它抛出“第3行:ValueError:int()的无效文字,基数为10:'“ 2019'”。为什么?>