Lua 使用模块
示例
-- The following assumes that trim module is installed or in the caller's package.path, -- which is a built-in variable that Lua uses to determine where to look for modules. local trim = require "trim" local msg = " Hello, world! " local cleaned = trim.trim_all(msg) local cleaned_right = trim.trim_right(msg) local cleaned_left = trim.trim_left(msg) -- It's also easy to alias functions to shorter names. local trimr = trim.trim_right local triml = trim.trim_left
热门推荐
10 简短的爱情生日祝福语
11 简短的祝福语中秋搞笑
12 爸妈金婚文案祝福语简短
13 老爸的祝福语简短独特
14 给孩子开学祝福语简短
15 朋友新工作祝福语简短
16 发文章祝福语简短英语
17 毕业教师花语祝福语简短
18 关于水的简短祝福语