Commit d6ea66b1 authored by 赵威's avatar 赵威

get ids

parent 1a2d6502
......@@ -74,8 +74,8 @@ if __name__ == "__main__":
distances = D.tolist()[0]
ids = I.tolist()[0]
res = []
for index, i in enumerate(distances):
for (index, i) in enumerate(distances):
if i <= 0.1:
res.append(ids[i])
res.append(ids[index])
print(res, "\n")
print(D)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment