【发布时间】:2016-08-25 23:42:10
【问题描述】:
我试图使用以下代码在 NetLogo 中导出世界而不覆盖它:
export-world (land-use-map "land-use-map" date-and-time ".csv")
其中“land-use-map”是补丁的最终配置,最初以 [gis] 扩展名加载为:
set land-use-map gis:load-dataset "land-use-map.asc"
但是每当我这样做时都会遇到错误。我想知道这段代码有什么问题,或者是否有人可以推荐任何其他方法来解决这个问题?
PS:我还在 NetLogo 中加载 [csv] 扩展,但我认为这不是必需的。
错误信息:
export-world: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
error while observer running EXPORT-WORLD
called by procedure SAVE-EXPORT-RESULTS
called by procedure GO
called by Button 'Go'
【问题讨论】:
-
“每当我这样做时都会遇到错误”不是很有帮助,除非你告诉我们错误是什么......
-
哎呀,我下次会更具体。原来这个错误实际上是一个错字,就像@Alan 指出的那样......
-
实际上,这不是一个错字(也许是错字,但不仅如此)。这是错误消息:export-world: java.io.IOException: The filename, directory name, or volume label syntax is wrong while observer running EXPORT-WORLD 由过程调用 SAVE-EXPORT-RESULTS 由过程调用由按钮调用'去'