小编Erm*_*rmi的帖子

我想使用datetime modul utcfromtimestamp方法,但它在Ninja-IDE中不起作用

我想使用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并在首选项中设置了路径.

python datetime python-import python-3.x

1
推荐指数
1
解决办法
1040
查看次数

标签 统计

datetime ×1

python ×1

python-3.x ×1

python-import ×1