【发布时间】:2019-03-10 09:04:01
【问题描述】:
我正在阅读https://docs.python.org/3/whatsnew/3.5.html#whatsnew-pep-465
这是否意味着,如果我 import numpy @ 相当于 np.matmul()?
【问题讨论】:
-
Dupe 是一个有点不同的问题,但是顶部答案的第一行:“@运算符调用数组的matmul方法,而不是点。这个方法也是以函数 np.matmul 的形式出现在 API 中。”