【发布时间】:2018-09-22 17:47:06
【问题描述】:
我是 NetLogo 的新手,所以这可能是一个愚蠢的问题。 当我尝试将海龟、补丁、全局变量导出到单独的 CSV 文件时,这个可以:
csv:to-file "turtles.csv" [ (list xcor ycor color shape) ] of turtles
但以下两个没有:
csv:to-file "patches.csv" [ (list xcor ycor cluster-number) ] of patches
错误:此代码不能由补丁运行,只能由海龟运行
csv:to-file "statistics.csv" (list meet meet-agg meetown meetown-agg meetother meetother-agg coopown coopown-agg coopother coopother-agg defown defown-agg defother defother-agg)
错误:扩展异常:应为列表列表,但 1016 是其中一个元素。
有人可以帮我吗?提前致谢!
【问题讨论】:
-
嗨,卢!欢迎来到 StackOverflow!我试图在下面的回答中猜测您的问题是什么,但总的来说,提出问题时的一个好的经验法则是尝试提供更多关于正在发生的事情的细节。在您的情况下,告诉我们您收到了哪些错误消息,而不是仅仅说明事情不正常,这将有助于我们更好地诊断您的问题。如果需要,您可以随时编辑您的问题并添加更多详细信息。