lua实用涵数数
- print(): 打印输出信息
- tonumber(): 将字符串转换为数字类型
- tostring(): 将数字转换为字符串类型
- type(): 返回变量类型
- table.concat(): 将一个表中的所有元素拼接成一个字符串
- table.insert(): 在表中插入一个元素
- table.remove(): 从表中删除一个元素
- math.abs(): 返回绝对值
- math.ceil(): 返回向上取整的整数
- math.floor(): 返回向下取整的整数
- string.sub(): 截取字符串
- string.find(): 在字符串中查找指定内容
- string.gsub(): 在字符串中替换指定内容
- string.len(): 返回字符串的长度
- os.time(): 返回当前时间戳
- os.date(): 返回格式化的日期时间字符串
- io.open(): 打开一个文件
- io.read(): 读取文件内容
- io.write(): 写入文件内容
- io.close(): 关闭文件
原文地址: https://www.cveoy.top/t/topic/byP9 著作权归作者所有。请勿转载和采集!