简单的lua字符串分割 function string.split(str,splitchar) for s in (str):gmatch("(.-)"..splitchar) do print(s) end end