点击运行
function myfunction () n = n/nil end if pcall(myfunction) then print("Success") else print("Failure") end
运行结果 :
正在执行...