@songying
2017-12-18T15:19:57.000000Z
字数 200
阅读 1123
python库
from datetime import datetime #导入datetime中的datetime类
now = datetime.now() #获取当前日期和时间,返回类型为datetime
now.year
now.month
now.day
now.hour
now.minute
now.second
date = datetime(2015,4,5,6,56) # 获取某个指定的时间