📅  最后修改于: 2022-03-11 14:45:31.321000             🧑  作者: Mango
Use:
from datetime import datetime
today = datetime.today()
datem = datetime(today.year, today.month, 1)
I assume you want the first of the month.