这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy6 N' s8 T P9 ]0 p% [( O. Q
if dummy < (item j [distance-from-other-turtles] of node3) 2 F. _) d8 _+ g5 W8 X( Y9 j [5 V9 h4 V. Y5 }- N
ask node3 [* ?- D, |3 K' B1 g, a5 ?3 ^3 x
set distance-from-other-turtles replace-item j distance-from-other-turtles dummy ' J# I. M! e8 V. G9 L; W% B; U ] , l- z3 l# }- {* l+ n `7 _# a ]