3
我試圖運行下面的NetLogo過程:添加特性與程序的NetLogo
to spread-virus
ask turtles with [infected?]
[ ask link-neighbors with [not infected?]
[ if random-float 100 < virus-spread-chance
[ become-infected ] ] ]
end
我想不僅ask turtles with [infected?]
,還有那些with [immune?]
。我怎麼能在另外的第二特性(immune
)添加到infected
?
'感染?或免疫?] – Alan
我知道這是一個很小的問題。但如果你想把這個答案放在答案中,我會選擇它作爲答案。 –