1
我是一個正在拾取python的新程序員。我最近試圖學習如何使用numpy導入csv文件。 這裏是我的代碼:初始化多個數組拋出未報告的異常python
import numpy as np
x = np.loadtxt("abcd.py", delimiter = True, unpack = True)
print(x)
閒置返回我:
>> True
>> Traceback (most recent call last):
>> File "C:/Python34/Scripts/a.py", line 1, in <module>
import numpy as np
>> File "C:\Python34\lib\site-packages\numpy\__init__.py", line 180, in <module>
from . import add_newdocs
>> File "C:\Python34\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
>> File "C:\Python34\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
from .type_check import *
>> File "C:\Python34\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
>> File "C:\Python34\lib\site-packages\numpy\core\__init__.py", line 14, in <module>
from . import multiarray
>> SystemError: initialization of multiarray raised unreported exception
爲什麼會在這個系統中的錯誤,我該如何補救呢?