如何访问数组中的字典?
import numpy as np
x = np.array({'x': 2, 'y': 5})
我最初的想法:
x['y']
Index Error: not a valid index
x[0]
Index Error: too many indices for array
最佳答案
关于python - numpy 数组中的字典?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37949409/