1. 程式人生 > >Python之time模塊

Python之time模塊

day import imp col timedelta delta %d 模塊 class

import time,datetime
x=time.localtime()
print(time.strftime(%Y-%m-%d %H:%M,x))

print(datetime.datetime.now()+datetime.timedelta(days=-3))

Python之time模塊