Python画出系统时间
代码如下:
import datetime now = datetime.datetime.now() print (now.year,'年',now.month,'月',now.day,'日',now.hour,'时') #0241
运行结果:
代码如下:
import datetime now = datetime.datetime.now() print (now.year,'年',now.month,'月',now.day,'日',now.hour,'时') #0241
运行结果: