lua 多赋值,多返回等
function test(a,b) return a+b,a-b end print(test(10,5)) num1,num2 = 2,3
特殊的lua语法,函数可以返回多个值
也可以为多个值赋值
首页
我的博客
粤ICP备17103704号