83

Python基础模块:datetime模块-回首已是空-51CTO博客

 6 years ago
source link: http://blog.51cto.com/yishi/2067819
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
datetime介绍:datetime是Python处理日期和时间的标准库。它包含了五个类:datetime,date,time,timedelta,tzinfodatetime数据对象:使用strptime把字符串日期转变为此对象,可以使用datetime里的一些方法和属性,比如date(),time(),year,month,day,strftime(),replace()等。导入语句:fro

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK