Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 996 Bytes

day3.md

File metadata and controls

33 lines (27 loc) · 996 Bytes

第三天

索引


python标准库 calendar

  1. The prmonth() method is a simple function that produces the formatted text output for a month.
import calendar

c = calendar.TextCalendar(calendar.SUNDAY)
c.prmonth(2017, 7)
  1. local
import calendar

c = calendar.LocaleTextCalendar(locale='en_US')
c.prmonth(2017, 7)

print()

c = calendar.LocaleTextCalendar(locale='fr_FR')
c.prmonth(2017, 7)

fabric基本使用