我想使用datetime模块utcfromtimestamp方法但它在Ninja-IDE中不起作用.我怎么能解决我的问题?
我的代码:
#-*- coding: utf-8 -*-
import datetime
print (datetime.datetime.utcfromtimestamp(130130301))
Run Code Online (Sandbox Code Playgroud)
Ninja-IDE 2.3写入此错误消息:
File "C:\Users\test\Desktop\datetime.py", line 3, in <module>
print (datetime.datetime.utcfromtimestamp(130130301))
AttributeError: 'module' object has no attribute 'utcfromtimestamp'
Run Code Online (Sandbox Code Playgroud)
我安装了Python 3.4并在首选项中设置了路径.