Lua 中操纵字符串的功能基本来自于string库,字符串库中的一些函数是非常简单的: ... s = "hello world from Lua" for w in string.gmatch(s, "%a+") do print(w) end.
確定! 回上一頁