尽管变量current_timestamp (以及函数返回值)和变量time都是datetime.datetime类对象,但下面的代码将引发AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
def current_time() -> datetime.datetime:current_timesta
第12行,在今天的datetime.datetime.timedelta(days=amount_Of_Days_Ago) AttributeError中:输入对象'datetime.datetime‘没有属性'timedelta’import datetime
print('How many days ago should the smaller period of time be