Lua 5.1
API
lua_Alloc
lua_atpanic
lua_call
lua_CFunction
lua_checkstack
lua_close
lua_concat
lua_cpcall
lua_createtable
lua_Debug
lua_dump
lua_equal
lua_error
lua_gc
lua_getallocf
lua_getfenv
lua_getfield
lua_getglobal
lua_gethook
lua_gethookcount
lua_gethookmask
lua_getinfo
lua_getlocal
lua_getmetatable
lua_getstack
lua_gettable
lua_gettop
lua_getupvalue
lua_Hook
lua_insert
lua_Integer
lua_isboolean
lua_iscfunction
lua_isfunction
lua_islightuserdata
lua_isnil
lua_isnone
lua_isnoneornil
lua_isnumber
lua_isstring
lua_istable
lua_isthread
lua_isuserdata
lua_lessthan
lua_load
lua_newstate
lua_newtable
lua_newthread
lua_newuserdata
lua_next
lua_Number
lua_objlen
lua_pcall
lua_pop
lua_pushboolean
lua_pushcclosure
lua_pushcfunction
lua_pushfstring
lua_pushinteger
lua_pushlightuserdata
lua_pushliteral
lua_pushlstring
lua_pushnil
lua_pushnumber
lua_pushstring
lua_pushthread
lua_pushvalue
lua_pushvfstring
lua_rawequal
lua_rawget
lua_rawgeti
lua_rawset
lua_rawseti
lua_Reader
lua_register
lua_remove
lua_replace
lua_resume
lua_setallocf
lua_setfenv
lua_setfield
lua_setglobal
lua_sethook
lua_setlocal
lua_setmetatable
lua_settable
lua_settop
lua_setupvalue
lua_State
lua_status
lua_toboolean
lua_tocfunction
lua_tointeger
lua_tolstring
lua_tonumber
lua_topointer
lua_tostring
lua_tothread
lua_touserdata
lua_type
lua_typename
lua_Writer
lua_xmove
lua_yield
Auxiliary Library
luaL_addchar
luaL_addlstring
luaL_addsize
luaL_addstring
luaL_addvalue
luaL_argcheck
luaL_argerror
luaL_Buffer
luaL_buffinit
luaL_callmeta
luaL_checkany
luaL_checkint
luaL_checkinteger
luaL_checklong
luaL_checklstring
luaL_checknumber
luaL_checkoption
luaL_checkstack
luaL_checkstring
luaL_checktype
luaL_checkudata
luaL_dofile
luaL_dostring
luaL_error
luaL_getmetafield
luaL_getmetatable
luaL_gsub
luaL_loadbuffer
luaL_loadfile
luaL_loadstring
luaL_newmetatable
luaL_newstate
luaL_openlibs
luaL_optint
luaL_optinteger
luaL_optlong
luaL_optlstring
luaL_optnumber
luaL_optstring
luaL_prepbuffer
luaL_pushresult
luaL_ref
luaL_Reg
luaL_register
luaL_typename
luaL_typerror
luaL_unref
luaL_where
Index
index
Language
Arithmetic Operators
Assignment
Blocks
Chunks
Coercion
Concatenation
Control Structures
Coroutines
Environments
Error Handling
Expressions
For Statement
Function Calls
Function Calls as Statements
Function Definitions
Garbage Collection
Garbage-Collection Metamethods
Lexical Conventions
Local Declarations
Logical Operators
Metatables
Precedence
Relational Operators
Statements
Table Constructors
The Length Operator
Values and Types
Variables
Visibility Rules
Weak Tables
Standard Libraries
_G
_VERSION
assert()
collectgarbage()
coroutine.create()
coroutine.resume()
coroutine.running()
coroutine.status()
coroutine.wrap()
coroutine.yield()
debug.debug()
debug.getfenv()
debug.gethook()
debug.getinfo()
debug.getlocal()
debug.getmetatable()
debug.getregistry()
debug.getupvalue()
debug.setfenv()
debug.sethook()
debug.setlocal()
debug.setmetatable()
debug.setupvalue()
debug.traceback()
dofile()
error()
file:close()
file:flush()
file:lines()
file:read()
file:seek()
file:setvbuf()
file:write()
getfenv()
getmetatable()
io.close()
io.flush()
io.input()
io.lines()
io.open()
io.output()
io.popen()
io.read()
io.tmpfile()
io.type()
io.write()
ipairs()
load()
loadfile()
loadstring()
math.abs()
math.acos()
math.asin()
math.atan()
math.atan2()
math.ceil()
math.cos()
math.cosh()
math.deg()
math.exp()
math.floor()
math.fmod()
math.frexp()
math.huge
math.ldexp()
math.log()
math.log10()
math.max()
math.min()
math.modf()
math.pi
math.pow()
math.rad()
math.random()
math.randomseed()
math.sin()
math.sinh()
math.sqrt()
math.tan()
math.tanh()
module()
next()
os.clock()
os.date()
os.difftime()
os.execute()
os.exit()
os.getenv()
os.remove()
os.rename()
os.setlocale()
os.time()
os.tmpname()
package.cpath
package.loaded
package.loaders
package.loadlib()
package.path
package.preload
package.seeall()
pairs()
Patterns
pcall()
print()
rawequal()
rawget()
rawset()
require()
select()
setfenv()
setmetatable()
string.byte()
string.char()
string.dump()
string.find()
string.format()
string.gmatch()
string.gsub()
string.len()
string.lower()
string.match()
string.rep()
string.reverse()
string.sub()
string.upper()
table.concat()
table.insert()
table.maxn()
table.remove()
table.sort()
tonumber()
tostring()
type()
unpack()
xpcall()
请登录查看
A
A
默认
夜间
Lua 5.1 官网文档
阅读(10.2k)
收藏
赞
(
0
)
分享
手册简介
Lua 5.1 官方参考文档
更新记录
多端阅读
在PC/MAC上查看《Lua 5.1》
下载《Lua 5.1》离线版客户端
,进入客户端后通过搜索当前教程手册的名称并下载,就可查看当前离线教程文档。
在移动端查看《Lua 5.1》
扫一扫或
直接访问
https://m.w3cschool.cn/doc_lua_5_1/
在手机APP上查看《Lua 5.1》
下载w3cschool手机App端
,请从各大安卓应用商店、苹果App Store搜索并下载w3cschool手机客户端,在App中搜索当前教程手册的名称查看。
扩展栏目
开发工具IDE
编程训练营
Wiki列表
意见反馈
X
意见反馈:
联系方式:
提交
查看完整版笔记
保存
关闭
违规举报
X
广告等垃圾信息
不友善内容
违反法律法规的内容
不宜公开讨论的政治内容
其他
提交