datetime.datetime‘ has no attribute ‘timedelta‘最简单方法
importdatetimeprint(datetime.datetime.now())print(datetime.datetime.now()+datetime.timedelta(days=1))#2022-03-1012:05:30.901139#2022-03-1112:05:30.901139最近做一个Django项目,需要实现文件一天后过期的功能附加实现获取当前时间的另外一种方法(注