Python中对日期的计算可以使用calendar模块。实现代码如下:#!usrbinpython3import calendaryear = input("请输入年份:")month = input(&qu