Python获取当前时间 from datetime import datetime print(datetime.now()) Python获取后一天时间 import datetime timer = datetime.datetime.now() t = datetime.datetime.now()+datetime.timedelta(days=1) print(t)