博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年8月24日

摘要: Hello world-- test.luafunction fact(n) if n==0 then return 1; else return n*fact(n-1); endendprint("Hello, World!");a=io.read("*number");print(fact(a));交互模式 注释行注释:-- 块注释:--[[开始 …..结束]] ,常用--[... 阅读全文

posted @ 2009-08-24 10:08 Zhiyett 阅读(2093) 评论(1) 推荐(0) 编辑