我正在尝试编写一个程序,当您键入与月份对应的数字时,它会显示一个月中的天数。前任。1 = 一月,将打印“31” 这就是我所拥有的,这对我来说似乎是合乎逻辑的。虽然我才刚做完这件事一个多月,但我不知道自己在做什么。
def calcDaysInMonth():
(list,(range,(1, 12)))
a = raw_input()
int(a)
jan = 1
feb = 2
mar = 3
apr = 4
may = 5
june = 6
july = 7
aug = 8
sept = 9
octo = 10
nov = 11
dec = 12
if jan is True:
print("31")