为什么显示说numpy没有数组属性?
代码:
import numpy as np def main(): lst=[[1,3,5],[2,4,6]] print(type(lst)) a = np.array([[1, 2], [3, 4]]) print(a[1, 0]) if __name__ == '__main__': main()
为什么总是显示这个问题:AttributeError: module 'numpy' has no attribute 'array'
代码:
import numpy as np def main(): lst=[[1,3,5],[2,4,6]] print(type(lst)) a = np.array([[1, 2], [3, 4]]) print(a[1, 0]) if __name__ == '__main__': main()
为什么总是显示这个问题:AttributeError: module 'numpy' has no attribute 'array'
2019-03-17
举报