其中与其他的语言不同的是在lua中%是转义字符而不是''。 ... s = "some string" local words = {} for w in string.gmatch(s, "%a+") do print(w) ...
確定! 回上一頁