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 订亲求婚文案祝福语简短