python判断第几天,python判断输入日期为第几天
# -*- coding: utf-8 -*-# 简述:要求输入某年某月某日# 提问:求判断输入日期是当年中的第几天?def which_day(year,month,day):list=[31,28,31,30,31,30,31,31,30,31,30,31]whichday=0if (year%4)==0 and (year%100)!=0 or (year%400)==0:list[1]=2...