AttributeError: 'module' object has no attribute 'array'

問題原因 報錯信息: AttributeError: 'module' object has no attribute 'array' 錯誤原因:arraqy = np.array([[1,2,3],[2,3,4]])這句代碼所在的文件的路徑中包含了以numpy命名的文件夾或者文件. 試例見下圖:     解決辦法: 工程內不可以使用numpy命名文件夾或者文件. 如下圖所示:
相關文章
相關標籤/搜索