Lua实现字符串的切割,返回table function split(str, reps) local resultStrList = {} string.gsub(str,'[^'..reps..']+',function (s) table.insert(resultStrList,s) end) return resultStrListend 教程 2024-01-17 202 点赞 3 评论 306 浏览