Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 247 Bytes

113.md

File metadata and controls

14 lines (11 loc) · 247 Bytes

113 月的第一天

from datetime import date
mydate = date.today()
month_first_day = date(mydate.year, mydate.month, 1)
print(f"当月第一天:{month_first_day}\n")

打印结果:

# 当月第一天:2019-12-01