热线电话:13121318867

登录
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.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据