خرید بک لینک

Vote count: 0

In my python 2.X/3.X code, I am mapping an array arr using a function func, so I do

def func(i):
    ....
    print(o)
    retu o

output = numpy.vectorize(func)(arr)

When I look at the printout, the output of the first element is printed twice! Has anyone else seen that behavior? Is that bug?

Thanks.

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 22 خرداد 1395 ساعت: 5:25

صفحه بندی