lua5.3.4 _G全部内容

_G.

 

基本库函数23个


_G.pairs
_G.rawset
_G.rawlen
_G.assert
_G.pcall
_G.ipairs
_G.load
_G.dofile
_G.tostring
_G.print
_G.loadfile
_G.rawequal

_G.getmetatable
_G.select
_G.setmetatable
_G.error
_G.xpcall
_G.collectgarbage
_G.tonumber
_G.next
_G.require
_G.rawget
_G.type

 

_G._VERSION => Lua 5.3

_G.arg


 _G.arg.0 => _G.lua
 _G.arg.-1 => lua

标准库9个

 

_G.string
_G.utf8
_G.package
_G.debug
_G.math
_G.table
_G.io
_G.os
_G.coroutine
 

_G.string


 _G.string.reverse
 _G.string.upper
 _G.string.char
 _G.string.len
 _G.string.packsize
 _G.string.byte
 _G.string.match
 _G.string.format
 _G.string.gmatch
 _G.string.dump
 _G.string.unpack
 _G.string.pack
 _G.string.find
 _G.string.sub
 _G.string.rep
 _G.string.gsub
 _G.string.lower


_G.pairs
_G.rawset
_G.rawlen
_G.assert
_G.pcall

_G.utf8


 _G.utf8.charpattern => [
 _G.utf8.codepoint
 _G.utf8.len
 _G.utf8.codes
 _G.utf8.offset
 _G.utf8.char
_G.ipairs
_G._G
_G._VERSION => Lua 5.3
_G.load
_G.dofile
_G.tostring
_G.print
_G.loadfile
_G.rawequal
_G.re_print
_G.getmetatable

 

_G.package


 _G.package.searchpath
 _G.package.loaded
 _G.package.loadlib
 _G.package.config => \
;
?
!
-

 _G.package.searchers
  _G.package.searchers.1
  _G.package.searchers.2
  _G.package.searchers.3
  _G.package.searchers.4
 _G.package.cpath => C:\Windows\system32\?.dll;C:\Windows\system32\..\lib\lua\5.3\?.dll;C:\Windows\system32\loadall.dll;.\?.dll
 _G.package.preload
 _G.package.path => C:\Windows\system32\lua\?.lua;C:\Windows\system32\lua\?\init.lua;C:\Windows\system32\?.lua;C:\Windows\system32\?\init.lua;C:\Windows\system32\..\share\lua\5.3\?.lua;C:\Windows\system32\..\share\lua\5.3\?\init.lua;.\?.lua;.\?\init.lua


_G.select
_G.setmetatable
_G.error
_G.xpcall
_G.collectgarbage
_G.tonumber


_G.debug


 _G.debug.debug
 _G.debug.setmetatable
 _G.debug.gethook
 _G.debug.setupvalue
 _G.debug.setlocal
 _G.debug.getuservalue
 _G.debug.sethook
 _G.debug.setuservalue
 _G.debug.getregistry
 _G.debug.getlocal
 _G.debug.getinfo
 _G.debug.traceback
 _G.debug.getupvalue
 _G.debug.getmetatable
 _G.debug.upvalueid
 _G.debug.upvaluejoin


_G.next


_G.math


 _G.math.abs
 _G.math.cos
 _G.math.fmod
 _G.math.maxinteger
 _G.math.exp
 _G.math.modf
 _G.math.mininteger
 _G.math.deg
 _G.math.acos
 _G.math.asin
 _G.math.log
 _G.math.pi
 _G.math.ceil
 _G.math.tan
 _G.math.tointeger
 _G.math.sqrt
 _G.math.sin
 _G.math.randomseed
 _G.math.rad
 _G.math.random
 _G.math.atan
 _G.math.min
 _G.math.max
 _G.math.floor
 _G.math.huge
 _G.math.ult
 _G.math.type


_G.require


_G.table


 _G.table.unpack
 _G.table.concat
 _G.table.pack
 _G.table.insert
 _G.table.move
 _G.table.sort
 _G.table.remove


_G.io


 _G.io.read
 _G.io.tmpfile
 _G.io.stdout
 _G.io.write
 _G.io.flush
 _G.io.stdin
 _G.io.close
 _G.io.input
 _G.io.lines
 _G.io.stderr
 _G.io.popen
 _G.io.output
 _G.io.open
 _G.io.type


_G.rawget


_G.os


 _G.os.date
 _G.os.execute
 _G.os.tmpname
 _G.os.time
 _G.os.remove
 _G.os.difftime
 _G.os.clock
 _G.os.rename
 _G.os.setlocale
 _G.os.exit
 _G.os.getenv


_G.coroutine


 _G.coroutine.running
 _G.coroutine.status
 _G.coroutine.resume
 _G.coroutine.wrap
 _G.coroutine.isyieldable
 _G.coroutine.create
 _G.coroutine.yield


_G.type

 

转载于:https://my.oschina.net/SamXIAO/blog/2992154

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值