はので、私はLUAで平凡だけど、私はちょうどこの local profanitywords = {"fuck", "shit", "ass"} -- a small list
local input = io.read()
for i,v in ipairs (profanitywords) do
if string.find(input:lower(), v) then
単純なLuaテーブルを反復するにはどうすればいいですか?末尾からa sequenceですか?指名手配の行動の 例: local mytable = {'a', 'b', 'c'}
for i, value in reversedipairs(mytable) do
print(i .. ": " .. value)
end
が出力さ 3: c
2: b
1: a
どのよう
ファイル内のすべての行をテーブルの中に格納する必要がありますが、特定の時点で読み込む必要があります。ここにファイルの例があります: class Foo as
attribute max : number
def static show as
count : number
begin
io.print(count)
return count
end
attribute min : n