摘要: The Lua language (v5.1)Reserved identifiers and commentsandbreakdoelseelseifendfalseforfunctionifinlocalnilnotorrepeatreturnthentrueuntilwhile-- ...comment to end of line--[=[]=]multi line comment (zero or multiple '=' are valid)_Xis "reserved" (by convention) for constants (with X 阅读全文
posted @ 2013-09-27 10:24 NPC-峰 阅读(550) 评论(0) 推荐(0)
摘要: 其实在Windows下配置也一样,只是Mac下要注意Lua的安装路径1.点击工具栏,Tool->Build System->New Build System2.在新建的脚本文件中添加以下代码{ "cmd": ["lua", "$file"], "file_regex": "^(?:lua:)?[\t ](...*?):([0-9]*):?([0-9]*)", "selector": "source.lua"}3.ctrl + s将文件保存为lu 阅读全文
posted @ 2013-09-21 22:26 NPC-峰 阅读(1017) 评论(0) 推荐(0)
摘要: 本人用的Mac版本是目前最新的 MacOS X v10.8 Mountain Lion,系统自带的Python版本是2.7.2;由于初学Python,就干脆学Python3了,在eclipse上安装pydev插件之后,需要先配置 Preferences - PyDev,Python interpreter是用Auto Config自动配置的,Windows上这样就足够了,急切想看到效果,于是:print('Hello world !')控制台输出如下:---------------------------------------------------------------- 阅读全文
posted @ 2012-12-13 20:15 NPC-峰 阅读(2858) 评论(1) 推荐(1)
点击右上角即可分享
微信分享提示