Python:要求用 函数 实现: 从键盘输入年份和月份,然后计算返回该年该...答:encoding: utf-8# Python 3.6.0def getdays(): year=input("输入年份:") month=input("输入月份:") if year=="" or month==""or year.isdigit()==False or month.isdigit()==False: return "输入非法" m=[31,28,31,30,31,30,31,31,30,31,30,31] if int(...