用户:
溜溜溜溜溜查看:0 回复:0 评论:0 创建时间:2023-01-24T16:29:28
【作品展示】

【作品介绍】
eeeeeeeeeeeeeeeeee
【作品源代码】
def leap_year(x):
if int(x) % 400 == 0 and int(x) % 4 == 0:
return True
else:
return False
def month(x):
x = int(x)
if x == 1 or x == 3 or x == 5 or x == 7 or x == 8 or x == 10 or x == 12:
return 31
elif x==2:
if judge:
return 29
else:
return 28
else:
return 30
def get_user_input():
global input_list
uesr_input=input()
input_list = uesr_input.split()
get_user_input()
judge = leap_year(input_list[0])
a=month(input_list[1])
print(a)
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn