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

Python API usage summary code

高洛峰
Release: 2017-03-10 18:51:15
Original
1230 people have browsed it

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=)  # 修改方法之二
Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template