相关文章  
  • Linux实用管理技巧小集
  • Linux中的两个问题及目录组织
  • 让Linux应用更加得心应手的20招
  • Emacs日程安排及calendar使用方法
  • LINUX的集群系统简介及现状
  • Linux中软件安装及技巧
  • Linux下新手装网卡指南
  • 如何在Linux中访问硬盘DOS分区、软盘和光盘
  • linux启动全接触
  • Linux开机程序内幕(1)
  •   推荐  
      科普之友首页   专利     科普      动物      植物        天文   考古   前沿科技
     您现在的位置在:  首页 >>文献 >>培训

    使用Lua编写可嵌入式脚本之三2

    ring
    > i = t3
    > s = "a night at the opera"

    > -- indices can be any Lua value
    > print(t1., t4[t3], t6[s])
    moustache   the marx brothers classic

    > -- the phrase table.string is the same as table["string"]
    > print(t3.horn, t3["horn"])
    harpo   harpo

    > -- indices can also be "multi-dimensional"
    > print (t5["marks"]["horn"], t5.marks.horn)
    harpo   harpo

    > -- i points to the same table as t3
    > = t4[i]
    the marx brothers

    > -- non-existent indices return nil values
    > prin

    页码:[1] [2] [3] [4] [5] [6] [7]2页、共7页

         

          设为首页       |       加入收藏       |       广告服务       |       友情链接       |       版权申明      

    Copyriht 2007 - 2008 ©  科普之友 All right reserved