Python time 100 天以后的日期

import time
time.strftime('%Y%m%d')


import datetime
now_time = datetime.datetime.now()
future_time = now_time + datetime.timedelta(days=100)
fu = future_time.strftime('%Y%m%d')

print(int(fu))
20180304
posted @ 2022-08-19 22:59  luoganttcc  阅读(24)  评论(0编辑  收藏  举报