1、第一步,导入calendar模块,查看calendar模块的Calendar类,>>> calendar.Calendar<class 'calendar.Calendar'>如下图所示:
2、第二步,查看calendar模块的HTMLCalendar类,>>> calendar.HTMLCalendar<class 'calendar.HTMLCalendar'>如下图所示是:
3、第三步,查看calendar模块的IllegalMonthError类,>>> calendar.IllegalMonthError<class 'calendar.IllegalMonthError'>如下图所示:
4、第四步,查看calendar模块的IllegalWeekdayError类,>>> calendar.IllegalWeekdayError<class 'calendar.IllegalWeekdayError'>如下图所示:
5、第五步,查看calendar模块的LocaleHTMLCalendar类,>>> calendar.LocaleHTMLCalendar<class 'calendar.LocaleHTMLCalendar'>如下图所示:
6、第六步,查看calendar模块的LocaleTextCalendar类,>>> calendar.LocaleTextCalendar<class 'calendar.LocaleTextCalendar'>如下图所示: