以下示例是关于Lua中包含roblox表找到用法的示例代码,想了解roblox表找到的具体用法?roblox表找到怎么用?roblox表找到使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。
local t = {"a", "b", "c", "d", "e"}
print(table.find(t, "d")) -- 4
print(table.find(t, "z")) -- nil, because z is not in the table
print(table.find(t, "b", 3)) -- nil, because b appears before index 3
本文地址:https://www.itbaoku.cn/snippets/785579.html