How to pass a numpy scalar to a function nicely in python?

前端 未结 0 472
无人及你
无人及你 2021-01-03 15:34

I have a numpy array a and want to pass its elements to a function func in a loop:

a = np.array([0, 0, 1], dtype=\'bool\')

def func         


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