Lua搜索特殊字符 local newtext = "." local index1 = string.find(newtext,"%.") 在这里,"."是通配符,如果想搜索到".",加上"%","%"是转义字符