--lua中没有休眠函数需要自己实现
local socket = require("socket")
--定义休眠函数
local function sleep(n)
socket.select(nil,nil,n)
end
--死循环输出hello world
while true do
print("hello world")
sleep(0.01)
-- end
--lua中没有休眠函数需要自己实现
local socket = require("socket")
--定义休眠函数
local function sleep(n)
socket.select(nil,nil,n)
end
--死循环输出hello world
while true do
print("hello world")
sleep(0.01)
-- end