Home  >  Article  >  Backend Development  >  Python API usage summary code

Python API usage summary code

高洛峰
高洛峰Original
2017-03-10 18:51:151218browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn