标签: python python-3.x numpy module pycharm
我是第一次使用numpy。我导入了numpy,然后使用了数组,但它指出:
模块'numpy'没有属性'array'
尝试重新安装,但无法正常工作。我在在线IDE中运行了相同的代码,效果很好。
import numpy as np a = np.array([22,33,44,55,66,77,88]) print(a)
我希望它显示数组列表。
但是它显示:
AttributeError:模块'numpy'没有属性'array'