當前位置:成語大全網 - 新華字典 - python,用壹個字典描述壹個日期,包含年year,月month,日day的鍵字?

python,用壹個字典描述壹個日期,包含年year,月month,日day的鍵字?

today_time = datetime.datetime.now()

today_time_dict = {'year':today_time.year,'month':today_time.month,'day':today_time.day}

望采納