#calendar日历模块 import calendar #calendar() 获取一年日历 result = calendar.calendar(2018,w = 2,l = 1,c = 6,m = 3) print(result) #获取指定月份的日历 result = calendar.month(2017,11,w = 4,l = 3) print(result) #monthcalendar() 获取指定月份的日历的矩阵格式 result = calendar.monthcalen…