python date

三天前

datetime.datetime.now() - datetime.timedelta(days=3)

原文地址:https://www.cnblogs.com/ppqchina/p/6228785.html