国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

datetime - Python如何取得目前時(shí)間
ringa_lee
ringa_lee 2017-06-28 09:25:57
0
1
1396

Python如何取得目前時(shí)間,格式如下:

2017-06-23 22:12:35
ringa_lee
ringa_lee

ringa_lee

全部回覆(1)
阿神

參考文章:Python取得當(dāng)前時(shí)間

time模組(low level)

import time
time.strftime("%Y-%m-%d %H:%M:%S")

datetime模組(high level Object-oriented interface to dates and times)

import datetime
datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") 
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板