خرید بک لینک

Vote count: 0

I would like to test the equality of multiple args (i.e. it should retu True if all args are equal and False if at least one argument differs).

As numpy.equal can only handle two arguments, I would have tried reduce but it, obviously, fails:

reduce(np.equal, (4, 4, 4)) # retu False because...
reduce(np.equal, (True, 4)) # ... is False

asked 27 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 6 مرداد 1395 ساعت: 16:40

صفحه بندی