lua 函数调用

https://github.com/starwing/luautf8

local u = utf8.escape
print(u"%123%u123%{123}%u{123}%xABC%x{ABC}")
print(u"%%123%?%d%%u")

function a(str)
	print( str )
	return {
      
		s = function()
			print("sub fun")
		end
	}
end

a"555".s()
555
sub fun

有趣

你可能感兴趣的:(吐槽,lua)