Python 实现输入某年某月某日,判断这一天是这一年的第几天?
import datetimedef get_daynum(): year = input("请输入年份:") month = input("请输入月份:") day = input("请输入天:") date1 = datetime.date(year=int(year),month=int(month),day=int(day)) date2 = da..