CS青雀的巢

心平气和,不起执念。

【Python】Python-numpy逻辑报错:The truth value of an array with more than one element is ambiguous. Us

报错代码:   import numpy as np a=np.zeros(3) a[0]=0; a[1]=1; a[2]=2 if a==[1,2,3]: print "OK" else: print "NOT OK&quo...

2016-02-21 15:46:31

阅读数 47021

评论数 4

提示
确定要删除当前文章?
取消 删除