📜  将秒数添加到日期时间 python 代码示例

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

代码示例1
from datetime import datetime, timedelta
x = datetime.now() + timedelta(seconds=3)
x += timedelta(seconds=3)