且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

NetLogo可以读取Excel文件格式吗?

更新时间:2023-01-29 18:12:16

两种解决方案,假设您不想编写扩展名.您可以将Excel文件另存为CSV,然后

Two solutions, assuming you do not want to write an extension. You can save the Excel file as CSV and then

  1. 编写一个NetLogo程序来读取您的CSV文件.要开始使用,请参见 http://netlogoabm.blogspot.com/2014/01/reading-from-csv-file.html

  1. 使用脚本语言(建议使用Python)读取CSV文件,然后写出
  1. use a scripting language (Python recommended) to read the CSV file and then write out a .nls file with code for creating the table