欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

求Python代碼從鍵盤(pán)輸入年份和月份

求Python代碼從鍵盤(pán)輸入年份和月份?

import calendar

year = 2019

if calendar.isleap(year):

day_num=365

else:

day_num=366

calendar庫(kù)中的閏年算法

def isleap(year):

"""Return True for leap years, False for non-leap years."""

return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)