function select(a,...)
if type(a)=="string" then print(arg.n) end
if type(a)=="number" then print(arg[a]) end
end
function test(name,...)
select("#",...)
end
test("aaa",2,3)
错误提示是:
e16.lua:6: unexpected symbol near `...'
谁能帮我看看这段代码错在什么地方(LUA)
答案:2 悬赏:40
解决时间 2021-03-05 12:12
- 提问者网友:伪情浪人
- 2021-03-05 04:33
最佳答案
- 二级知识专家网友:星痕之殇
- 2021-03-05 04:53
function select(a, ...)
if type(a) == "string" then print(arg.n) end
if type(a) == "number" then print(arg[a]) end
end
function test(b, ...)
select("#", ...)
end
test("aaa", 2, 3)
if type(a) == "string" then print(arg.n) end
if type(a) == "number" then print(arg[a]) end
end
function test(b, ...)
select("#", ...)
end
test("aaa", 2, 3)
全部回答
- 1楼网友:不羁的心
- 2021-03-05 05:08
可以私聊我~
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯