2019-04-18
阅读量:
557
考虑两个随机数组,检查它们是否相等
A = np.random.randint(0,2,5)
B = np.random.randint(0,2,5)
equal = np.allclose(A,B)
#Returns True if two arrays are element-wise equal within a tolerance.
print equal
False






评论(0)


暂无数据