parent
54d26496bc
commit
58ef8d43cb
@ -1,24 +0,0 @@
|
||||
------------------------------------------------------------------------------
|
||||
-- LUA (5.3+) CHEATSHEET (中文速查表) - by skywind (created on 2018/03/18)
|
||||
-- Version: 1, Last Modified: 2018/03/18 20:59
|
||||
-- https://github.com/skywind3000/awesome-cheatsheets
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- 语言基础
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
print("Hello, World !!") -- 基本输出
|
||||
print("Hi" .. " You !!") -- 字符串链接
|
||||
print(type('')) -- 输出变量类型
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- 字符串处理
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
-- 文件操作
|
||||
------------------------------------------------------------------------------
|
||||
io.lines(filename) -- 直接读取行
|
Loading…
Reference in new issue