Python程序笔记2023006
摘要:判断闰年 初始版本 year = input('请输入一个年份:') while not year.isdigit(): year = input("抱歉,您的输入有误,请输入一个整数:") year = int(year) if year % 400 == 0: print(year, "是闰年!
阅读全文
posted @ 2023-04-13 16:41
posted @ 2023-04-13 16:41
posted @ 2023-04-13 13:48
posted @ 2023-04-12 19:42
posted @ 2023-04-11 12:19
posted @ 2023-04-11 11:43
posted @ 2023-04-11 11:34