数据类型不明


93

我正在尝试使用矩阵来计算内容。代码是这个

import numpy as np
# some code
mmatrix = np.zeros(nrows, ncols)
print mmatrix[0, 0]

但是我得到“无法理解的数据类型”,并且如果我从终端执行此操作,它将起作用。

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.