一个环境就是一个表,该表记录了新环境能够访问的全部域newfenv = {} setfenv(1, newfenv) print(1) -- attempt to call global `print' (a nil value).
確定! 回上一頁