0
datetime
모듈 utcfromtimestamp
메서드를 사용하고 싶지만 Ninja-IDE에서는 작동하지 않습니다. 어떻게 문제를 해결할 수 있습니까?datetime utcfromtimestamp 메서드를 사용하고 싶지만 Ninja-IDE에서 작동하지 않습니다.
내 코드 :
File "C:\Users\test\Desktop\datetime.py", line 3, in <module>
print (datetime.datetime.utcfromtimestamp(130130301))
AttributeError: 'module' object has no attribute 'utcfromtimestamp'
내가 파이썬 3.4 설치 및 설정 환경 설정에서 경로 :
#-*- coding: utf-8 -*-
import datetime
print (datetime.datetime.utcfromtimestamp(130130301))
그리고 닌자-IDE 2.3이 오류 메시지를 기록합니다.
[이름 쉐도우 잉] (http://python-notes.curiousefficiency.org/ko/latest/python_concepts/import_traps.html#the-name-shadowing-trap) – jfs