如何在ztree中使用表加载器? [英] How to use table loader in ztree?

查看:137
本文介绍了如何在ztree中使用表加载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在ztree中基于Billinger,Stieglitz和Schumacher编写所谓的外星人游戏".但是,我正在努力将NK矩阵转换为ztree.

I am programming a so-called "Alien Game" based on Billinger, Stieglitz and Schumacher in ztree. However, I am struggling to my NK matrix into ztree.

有人在ztree中具有表加载器"功能的经验,可以帮助我了解如何转换excel/txt表和/或命令是什么吗?

Does anyone have experience with the "table loader" function in ztree and can help me understand how I need to transform my excel/txt sheet and/or what the command is?

已经提前谢谢!

推荐答案

表加载程序实质上是加载文本文件.要记住的事情:

The table loader essentially loads a text file. Things to remember:

  • 第一列对应于您要导入的表名称
  • 第一行对应于变量名称
  • 值以制表符分隔
  • 字符串变量应该用双引号引起来
  • First column corresponds to the table name you'd like to import to
  • First row corresponds to the variable name
  • Values are tab separated
  • String variables should be enclosed by doublequotes

举个例子,如果您要将一些带有数字和名称的条目加载到名为mytable的表中,它的外观应类似于(制表符而不是空格):

To give an example if you want to load some entries with number and name to a table called mytable it should look like (tab instead of spaces):

mytable    number    codename
mytable    345       "Anna"
mytable    943       "Bob"

我不确定Microsoft Excel.添加表名称的第一列和变量名称的第一行之后,您可能可以将工作表另存为Text(tab delimited).我使用OpenOffice calc,对我而言,最简单的方法是将粘贴从calc复制到文本文件.

I am not sure about Microsoft Excel. You probably can save your sheet as a Text(tab delimited) after you add your first column for the table name and first row as the variable name. I use OpenOffice calc and to me the easiest way is to copy paste from calc to a text file.

然后它会自动制表符分隔.

It is automatically tab separated then.

了解所需格式的最简单方法是在z-Tree中创建所需的表,然后使用表转储器.然后,您可以比较所需的格式和所需的格式.

The easiest way to understand what kind of format you need is to create the table of your desire in z-Tree then use table dumper. Then you can compare the format you have and the format you need.

这篇关于如何在ztree中使用表加载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆