📅  最后修改于: 2022-03-11 14:45:08.866000             🧑  作者: Mango
from datetime import datetime, timedelta
import time
dtime = datetime.now() + timedelta(seconds=3)
unixtime = time.mktime(dtime.timetuple())