dt_now = datetime.datetime.now()print(dt_now)# 2019-05-09 14:44:32.555337获取日期,不含时分秒today = dt_now.date()print(today)# 2019-05-09