local function printTable( table )
local str = ""
str = str.."{"
local function pr( table)
for k,v in pairs(table) do
local count = 0 --用来判断table是否有为{},如果为0 就是{}
if tonumber(k) == nil then
str = str..k.." = "
end
if type(v) == "table" then
str = str.."{"
pr(v)
str = str.."},"
else
str = str..tostring(v)..","
end
end
if count ~= 0 then
str = string.sub(str,1,-2) -- 把最后一个字符的","去掉
end
end
pr(table)
str = str.."}"
print(str)
end