不用datetime模块

(pd.to_datetime("today") - pd.Timedelta(days= 1) ).strftime("%Y-%m-%d")
pd.Timestamp('today').strftime("%Y-%m-%d")