📜  python datetime 加一星期 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:37.928000             🧑  作者: Mango

代码示例1
import datetime

u = datetime.datetime.strptime("2011-01-01","%Y-%m-%d")
d = datetime.timedelta(days=7)
t = u + d