这里,我假设node3和turtle j之间的距离大于值dummy,我就让node3和turtle j之间的距离为值dummy0 K( o. ^" O. ]" _) Q3 R
if dummy < (item j [distance-from-other-turtles] of node3)+ Z. S& a) ~* p1 b& ^
[ ' M, i q; w1 @# Y ask node3 [ : G; `6 {6 L1 t9 v set distance-from-other-turtles replace-item j distance-from-other-turtles dummy & z+ J8 X5 K7 U: F& B6 M6 g ] 5 N: T( c3 B( _* T9 l ]