Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 320 Bytes

113.md

File metadata and controls

16 lines (12 loc) · 320 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
[上一个例子](112.md) [下一个例子](114.md)