lua transliterate实现(lua程序设计10.6练习10.3题) local function transliterate(s,t)return (string.gsub(s,"%a",function(a)if t[a] == false thenreturn ""elseif t[a] thenreturn t[a]endend)) endlocal s = "hello world" local t1 = {l="L",h="H",o=false} print(transliterate(s,t1))