from datetime import datetime
time = datetime.now()
print(time + datetime.timedelta(seconds=1))
Вот ошибка:
print(time + datetime.timedelta(seconds=1))
AttributeError: type object 'datetime.datetime' has no attribute 'timedelta'
import datetime as dt
print(dt.datetime.now()+dt.timedelta(seconds=1))