这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy 3 L" m( @* w" ^- |. z+ i! uif dummy < (item j [distance-from-other-turtles] of node3): h& m$ G Y) {3 G, j* ? u
[. O' m. x: o' b$ m! n3 B( C0 ~
ask node3 [9 `) R3 _# I m, g u' I* U" \
set distance-from-other-turtles replace-item j distance-from-other-turtles dummy # ] z. C- Z- t% f ]; W) Q2 m' a5 Y C' a
]