对numpy array中每个元素apply function

np.frompyfunc()

原文地址:https://www.cnblogs.com/lizhiqing/p/13971446.html