获取今天前第N天的日期
from datetime import datetime
from datetime import timedelta
def get_date(days=N):
return datetime.now() - timedelta(days=days)
获取今天前第N天的日期
from datetime import datetime
from datetime import timedelta
def get_date(days=N):
return datetime.now() - timedelta(days=days)