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