| 查看: 808 | 回复: 1 | ||
yanghf263银虫 (正式写手)
|
[交流]
求数组的阶乘出现错误 已有1人参与
|
|
x=np.arange(1,50)为数组 np.abs(x)没问题,输出绝对值数组 np.math.factorial(x)提示错误,TypeError: only length-1 arrays can be converted to Python scalars。 谁知道简单的求数组的阶乘呢? |

2楼2018-10-21 12:07:02













回复此楼