智一面的面试题提供python的测试题
使用地址:http://www.gtalent.cn/exam/interview?token=09b2a6b63e829ef00c112d80fe78d1df
import datetime
datetime.datetime.now().year
datetime.datetime.now().month
datetime.datetime.now().day
[root@skyeye ~]# python
Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> datetime.datetime.now().year
2018
>>> datetime.datetime.now().month
11
>>> datetime.datetime.now().day
14
————————————————
我们的python技术交流群:941108876
智一面的面试题提供python的测试题
http://www.gtalent.cn/exam/interview?token=a1d36ec05adbae1684c0acf0857545d2