Netlogo中是否有NOOP? [英] Is there a NOOP in Netlogo?
本文介绍了Netlogo中是否有NOOP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种在netlogo中什么也不做的方法.在其他编程语言中,这称为无操作方法.有没有办法可以在netlogo中做到这一点?
I am looking for a way to do nothing in netlogo. In other programming lanagues this is known as a no op method. Is there a way that I could do this in netlogo?
推荐答案
您可以轻松编写自己的无操作程序:
You can write a no-op procedure of your own pretty easily:
to no-op
end
; usage
to go
no-op
end
如果仅需要内置基元,则display
或clear-output
可能是候选对象,具体取决于您在模型中使用的内容.
If you only want built-in primitives, display
or clear-output
might be candidates, depending on what you're using in your model.
这篇关于Netlogo中是否有NOOP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文