a=eval(input()) if a in (1,5,3,7,8,10,12): print("31") elif a in (4,6,9,11): print("30") else:print("28")
用Python语言这题很简单,只需要输入几月份,就可以输出天数。
例如 输入 2
输出 28
a=eval(input()) if a in (1,5,3,7,8,10,12): print("31") elif a in (4,6,9,11): print("30") else:print("28")
用Python语言这题很简单,只需要输入几月份,就可以输出天数。
例如 输入 2
输出 28