numpy power ValueError: Integers to negative integer powers are not allowed.

来源:互联网 发布:rimworld mac a14 编辑:程序博客网 时间:2024/06/05 15:10
# numpy.power(x1,x2)numpy.power(1,-1)

这样做是不允许的,只需把x1 = float(x1)就行

阅读全文
0 0
原创粉丝点击