📌  相关文章
📜  python 获取当前月份 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:31.321000             🧑  作者: Mango

代码示例1
Use:

from datetime import datetime
today = datetime.today()
datem = datetime(today.year, today.month, 1)
I assume you want the first of the month.