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