python中時間相加問題

python中時間相加,好比用2008-01-31 00:11:23加上30分鐘,寫法以下:python import datetime,timespa format="%Y-%m-%d %H:%M:%S" result=datetime.datetime(*time.strptime("2008-01-31 00:11:23",format)[:6])-datetime.timedelta(mi
相關文章
相關標籤/搜索