—— 垃圾回收— 关键字 collectgarbagetest = { id = 1, name = 2 }— 获取当前lua占用内存数 K字节print(collectgarbage(“count”))test = nil— 进行垃圾回收collectgarbage(“collect”)print(collectgarbage(“count”))— lua有自动定时进行GC的方法