import datetime,time
# dt = datetime.datetime.now() # 获取当前时间的时间对象
# dt = datetime.date.fromtimestamp(time.time()) # 将时间戳转成年月日格式
# dt = dt.timetuple() # 转成时间对象,但会丢失时分秒
# dt = datetime.timedelta(1) # 用于时间的运算
# dt = datetime.datetime.now() + dt
# dt = dt.replace(year=2018,month=9) # 时间替换
# print(dt)