-- 用户自定义函数; -- lua中,两字符串使用".."两点来连接; function add(x,y) print("这是lua里的函数\n".."参数x="..x,"参数y="..y); return x+y; end;