'numpy.int64'对象不可调用

时间:2019-10-11 07:16:03

标签: python numpy printing anaconda

我只是在工作中写了一个代码,突然我遇到了我无法解决的错误。该程序由不同的Python模块和文件组成,但是即使我注释掉import语句,而只用print()运行该程序,也会出现此错误。即使当我打开一个新文件并只写print("Hello World")却一无所获时,我仍然收到此错误。

#from analyzeData.analyzeData import AnalyzeData
#from clustering.fancyPrcnt import fancyPrcnt
#from clustering.sampleData import SampleData

x = 10000
y = True  
z = "variable_x"
a = "variable_a"
b= "variable_b"

print('Print')

错误:

runfile('C:/Users/yc06664/Desktop/untitled4.py', wdir='C:/Users/yc06664/Desktop')
Traceback (most recent call last):

  File "<ipython-input-723-a85c343fc6b3>", line 1, in <module>
    runfile('C:/Users/yc06664/Desktop/untitled4.py', wdir='C:/Users/yc06664/Desktop')

  File "C:\Program Files\Anaconda_E5100\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
    execfile(filename, namespace)

  File "C:\Program Files\Anaconda_E5100\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/yc06664/Desktop/untitled4.py", line 11, in <module>
    print('Print')

TypeError: 'numpy.int64' object is not callable

0 个答案:

没有答案