Lua指定字符串分割 1.function split( str,reps ) local resultStrList = {} string.gsub(str,'[^'..reps..']+',function ( w ) table.insert(resultStrList,w) end) return resultStrListendstring库的gs... lua 2024-01-17 153 点赞 2 评论 231 浏览