monthcalendar
Python calendar.monthcalendar()方法 (Python calendar.monthcalendar() Method)
monthcalendar() method is an inbuilt method of the calendar module in Python. It works on simple text calendars and returns a matrix representing the given month's calendar. Each row in the matrix represents a full week, and the days outside of the month are represented by zeros.
monthcalendar()方法是Python中日历模块的内置方法。 它适用于简单的文本日历,并返回代表给定月份日历的矩阵。 矩阵中的每一行代表一整周,月份之外的天数由零表示。
Module:
模块:
import calendar
Syntax:
句法:
monthcalendar(year, month)
Parameter(s):