function leijia(...)
print("参数的个数",arg.n)
num=0
for i=1,arg.n do
print(arg[i])
num=num+arg[i]
end
return num
end
leijia(1,2,3,4,5)
print("和",leijia(1,2,3,4,5))
function leijia(...)
print("参数的个数",arg.n)
num=0
for i=1,arg.n do
print(arg[i])
num=num+arg[i]
end
return num
end
leijia(1,2,3,4,5)
print("和",leijia(1,2,3,4,5))