这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy% C1 i* B" f1 b) a. _$ x& ]7 K
if dummy < (item j [distance-from-other-turtles] of node3) ) ?4 _2 U3 q7 s [ 9 W( A9 {( V) X4 i$ H ask node3 [& l5 v1 ~: c" P. i2 H, ^5 v; p1 h! G
set distance-from-other-turtles replace-item j distance-from-other-turtles dummy$ N) P7 K( E A- U; w
]$ j$ T5 w; a6 i. F) B) Q l
]