dork-h
-
Python入门练习(Question4)
年份天数 题目 输入某年某月某日,判断这一天是这一年的第几天?特殊情况,闰年时需考虑二月多加一天 解答 year = int(input(“input year: “))month = int(input(“input month: “))day = int(input(“input day: “))monthDays = [0, 31, 28, 31, 3…
年份天数 题目 输入某年某月某日,判断这一天是这一年的第几天?特殊情况,闰年时需考虑二月多加一天 解答 year = int(input(“input year: “))month = int(input(“input month: “))day = int(input(“input day: “))monthDays = [0, 31, 28, 31, 3…