标签: netlogo
我想在点击一个按钮时显示netlogo世界的x坐标和y坐标。我使用了下面的代码。但是它给出了一个错误。我该怎么办?
ask patches with [pxcor mod 5 = 0 and pycor mod 5 = 0] [ set plabel pxcor pycor ]
答案 0 :(得分:0)
将pxcor pycor更改为(word "(" pxcor "," pycor ")")
pxcor pycor
(word "(" pxcor "," pycor ")")