monthdays2calendar(year, month)返回指定年和月的所有日期,把日期和第几周组成元组。例子:#python 3.4import calendar cal = calendar.Calendar(0)for i in cal.monthdays2calendar(2015, 11): print(i) print(';')结果输出如下:[(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (1, 6)];[(2, 0), (3, 1), (4, 2), (5, 3), (6, 4), (7, 5), (8, 6)];[(9, 0), (10, 1), (11, 2), (12, 3), (13
...
继续阅读
(108)