-- 字符串转table
local function stringToTable(str)
local b = loadstring("return "..str);
t = b();
return t
end
local str = "{{0, 0}, {3.0, 0}, {-3.0, 0}, {0, -3.0}, {3.0, -3.0}, {-3.0, -3.0}, {0, 3.0}}"
stringToTable(str)
打印出来的结果就是一个lua可以识别的Table数据