摘要:
在lua中没有发现字符串分割的函数,自己写了一个,记录在此,以备使用.--------------------------------------------------------- 参数:待分割的字符串,分割字符-- 返回:子串表.(含有空串)function lua_string_split(str, split_char) local sub_str_tab = {}; while (true) do local pos = string.find(str, split_char); if (not pos) then su... 阅读全文