python: 'numpy.int32' object is not iterable when using reduce on a numpy list

前端 未结 0 346
耶瑟儿~
耶瑟儿~ 2020-12-11 03:48

I am new to python programming. when using reduce() function on a numpy array (like this code):

import numpy as np
from functools import reduce
x = np.arange(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题