print("**********协同程序************") print("**********协程的创建************") --常用方式 --coroutine.create() fun = function() print(123) end co = coroutine.
print("**********特殊用法************") print("**********多变量赋值************") local a,b,c = 1,2,"123" print(a) print(b) print(c) --多变量赋值 如果后面的值不够 会自动补空 a,b
function sort(...) a = {...} b = nil for j=1,#a-1 do for i=1,#a-j do if(a[i]>a[i+1]) then b = a[i+1] a[i+1] = a[i] a[i] = b end end end ret