Lua封装根据某种格式分割字符串
根据格式分割字符串存入Table并返回function split(str, pat) local t = {} local last_end = 0 local s, e = string.find(str, pat, 1) local i = 1 while s do --print(str, s, e, last_end, s - last_end, string.sub