monthrange(year, month)
Returns weekday of first day of the month and number of days in month, for the specified year and month.
这个函数就是,返回星期的数量和本月的天数,需要引用calendar
import calendar
monthrange(2002,1)
monthrange(year, month)
Returns weekday of first day of the month and number of days in month, for the specified year and month.
这个函数就是,返回星期的数量和本月的天数,需要引用calendar
import calendar
monthrange(2002,1)