🌈 搜索
📅  最后修改于: 2022-03-11 14:47:08.753000             🧑  作者: Mango
def normalize(v): norm = np.linalg.norm(v) if norm == 0: return v return v / norm