python中datetime 的用法
import datetime
time_flag = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M")
‘2022-01-10-14-16’
进阶 昨天:yesterday = (datetime.datetime.now() + datetime.timedelta(days=-1)).date()
今天;:now = datetime.datetime.now()
明天:tomorrow = (datetime.datetime.now() + datetime.timedelta(days=+1)).date()