python 中not all arguments converted during string formatting
year=input("请输入年:\n")
month=input("请输入月:\n")
day=input("请输入日:\n")
m=[31,28,31,30,31,30,31,31,30,31,30,31]
if(year%400==0 or (year%100!=0 and year%4==0)):
m[1]=29;
x=0
for i in range[0,month-1]:
x+=m[x]
x=x+day
print("it is the %d day" %x)
大佬看看为什么会出现not all arguments converted during string formatting
初学者不太懂