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

python - problem with datetime time output
ringa_lee
ringa_lee 2017-05-18 10:46:51
0
2
1107

1Learn the basics of PYTHON on codecademy and learn datetime

Run the code:

from datetime import datetime
now=datetime.now()
#print now
print now.year
print now.month
print now.day
print now.time"

輸出的問題是:  年 月 日 都沒問題 就是 時間那里 不知道是啥意思。

'''2017
5
15
<built-in method time of datetime.datetime object at 0x7f7bd75f7f30>
None
ringa_lee
ringa_lee

ringa_lee

reply all(2)
PHPzhong
from datetime import datetime
now=datetime.now()
#print now
print now.year
print now.month
print now.day
print now.hour
print now.minute
print now.second
print now.microsecond

No time attribute

print now.date()
print now.time()
print now.timetuple()
print now.ctime()
習(xí)慣沉默
print now.tiem()
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template