📜  numpy 获取列表的长度 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:06.936000             🧑  作者: Mango

代码示例1
arr = np.array(['aasdfads', 'asfdads', 'fdfsdfaf'])
>>> [len(i) for i in arr]
[8, 7, 8]