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

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

    清单 1. 体验 Lua 表

    $ lua
    > -- create an empty table and add some elements
    > t1 = {}
    > t1. = "moustache"
    > t1. = 3
    > t1["brothers"] = true

    > -- more commonly, create the table and define elements
    > all at once
    > t2 = {. = "groucho", . = "chico", . = "harpo"}
    > t3 = {[t1.] = t2., accent = t2., horn = t2.}
    > t4 = {}
    > t4[t3] = "the marx brothers"
    > t5 = {characters = t2, marks = t3}
    > t6 = {["a night at the opera"] = "classic"}

    > -- make a reference and a st

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

         

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

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