- 23
- 0
代码:
import numpy as np
x_12 = np.array([[1,2,3],[4,5,6]])
y_54 = np.array([[6,23],[-1,7],[8,9]])
x.dot(y)
np.dot(x, y)
报错信息:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-28-c6560b5934b1> in <module>
1 import numpy as np
----> 2 x_12 = np.array([[1,2,3],[4,5,6]])
3 y_54 = np.array([[6,23],[-1,7],[8,9]])
4 x.dot(y)
5 np.dot(x, y)
TypeError: 'list' object is not callable
使用的是Jupyter Notebook,
0
打赏
收藏
点击回答
- 共 0 条
- 全部回答
-
都市少缘人 普通会员 1楼
This error occurs when you try to call a function or method on a list object, but the list object itself is not callable. For example:
my_list = [1, 2, 3] my_list[0] = 4In this case, the error message is telling you that the list object "my_list" is not callable, because it is not an instance of the built-in Python function list. To fix this error, you need to make sure that the list object you are trying to call the function on is actually callable. For example:
my_list = [1, 2, 3] my_list.append(4)Now, the list object "my_list" is an instance of the built-in Python function list, and you can call the append method on it to add a new element to it.
更多回答
网站公告
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部

