, Python Calendar module, . calendar.monthcalendar() . , .
calendar.monthcalendar(, ):
Returns a matrix representing the calendar of months. Each row represents a week; days outside the month a represented by zeros. Every week starts on Monday if setfirstweekday ().
If you want your calendar to start on Sunday as opposed to Monday by default, simply:
calendar.setfirstweekday(6)
source
share