📅  最后修改于: 2022-03-11 14:45:22.460000             🧑  作者: Mango
dict = {"a": 1, "b": 2, "c": 3, "d": 4}
data = list(dict.items())
an_array = np.array(data)
print(an_array)
OUTPUT
[['a' '1']
['b' '2']
['c' '3']
['d' '4']]