2012-12-19 101 views

回答

8

使用unpack()(在Lua 5.2更名爲table.unpack):

fun = function() 
    some_table = {1,2,3} 
    return (table.unpack or unpack)(some_table) 
end 
print(fun()) 

將打印1 2 3