Skip to content

Instantly share code, notes, and snippets.

@aoxu
Created May 27, 2013 09:15
Show Gist options
  • Save aoxu/5656029 to your computer and use it in GitHub Desktop.
Save aoxu/5656029 to your computer and use it in GitHub Desktop.
递归打印lua table
function printtable(t)
for i,v in pairs(t) do
if type(v) == "table" then
printtable(v);
else
print(i.." = "..tostring(v));
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment