📜  如何在python代码示例中建立关系

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

代码示例1
import numpy as np
a = np.array([400., 403., 406.]);
b = np.array([0.2,0.55,0.6]);
dict = {}
for A, B in zip(a, b):
    dict[A] = B

print(dict)
# {400.0: 0.2, 403.0: 0.55, 406.0: 0.6}