This article introduces the Python API usage summary code
datetime
datetime.date.today().strftime("%Y/%m/%d") new_date = datetime.date(1945, 8, 15) new_date + datetime.timedelta(days=,minuts=,microseconds=) # 修改方法之一 new_date.replace(month=new_date.month+1, day=, year=) # 修改方法之二
The above is the detailed content of Python API usage summary code. For more information, please follow other related articles on the PHP Chinese website!