1. print(): 打印输出信息
  2. tonumber(): 将字符串转换为数字类型
  3. tostring(): 将数字转换为字符串类型
  4. type(): 返回变量类型
  5. table.concat(): 将一个表中的所有元素拼接成一个字符串
  6. table.insert(): 在表中插入一个元素
  7. table.remove(): 从表中删除一个元素
  8. math.abs(): 返回绝对值
  9. math.ceil(): 返回向上取整的整数
  10. math.floor(): 返回向下取整的整数
  11. string.sub(): 截取字符串
  12. string.find(): 在字符串中查找指定内容
  13. string.gsub(): 在字符串中替换指定内容
  14. string.len(): 返回字符串的长度
  15. os.time(): 返回当前时间戳
  16. os.date(): 返回格式化的日期时间字符串
  17. io.open(): 打开一个文件
  18. io.read(): 读取文件内容
  19. io.write(): 写入文件内容
  20. io.close(): 关闭文件
lua实用涵数数

原文地址: https://www.cveoy.top/t/topic/byP9 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录