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
No time attribute