diff --git a/README.md b/README.md index 474ce31..7c1aa08 100644 --- a/README.md +++ b/README.md @@ -2,24 +2,8 @@ [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/skywind3000/awesome-cheatsheets) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/skywind3000/awesome-cheatsheets/blob/master/LICENSE) - - -```text - - █████╗ ██╗ ██╗███████╗███████╗ ██████╗ ███╗ ███╗███████╗ -██╔══██╗██║ ██║██╔════╝██╔════╝██╔═══██╗████╗ ████║██╔════╝ -███████║██║ █╗ ██║█████╗ ███████╗██║ ██║██╔████╔██║█████╗ -██╔══██║██║███╗██║██╔══╝ ╚════██║██║ ██║██║╚██╔╝██║██╔══╝ -██║ ██║╚███╔███╔╝███████╗███████║╚██████╔╝██║ ╚═╝ ██║███████╗ -╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ - - ██████╗██╗ ██╗███████╗ █████╗ ████████╗███████╗██╗ ██╗███████╗███████╗████████╗███████╗ -██╔════╝██║ ██║██╔════╝██╔══██╗╚══██╔══╝██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝██╔════╝ -██║ ███████║█████╗ ███████║ ██║ ███████╗███████║█████╗ █████╗ ██║ ███████╗ -██║ ██╔══██║██╔══╝ ██╔══██║ ██║ ╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ╚════██║ -╚██████╗██║ ██║███████╗██║ ██║ ██║ ███████║██║ ██║███████╗███████╗ ██║ ███████║ - ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚══════╝ - +[![](awesome.png)](https://github.com/skywind3000/awesome-cheatsheets) + ``` ## 最好用的中文速查表(Cheatsheet) diff --git a/languages/lua.lua b/languages/lua.lua index 80473d5..2d5a3fb 100644 --- a/languages/lua.lua +++ b/languages/lua.lua @@ -11,5 +11,14 @@ print("Hello, World !!") -- 基本输出 print("Hi" .. " You !!") -- 字符串链接 -print(type('')) -- 输出类型 -print(_G) +print(type('')) -- 输出变量类型 + +------------------------------------------------------------------------------ +-- 字符串处理 +------------------------------------------------------------------------------ + + +------------------------------------------------------------------------------ +-- 文件操作 +------------------------------------------------------------------------------ +io.lines(filename) -- 直接读取行