模块:DeepEnum16

来自希服维基
Bot93553讨论 | 贡献2026年5月9日 (六) 00:06的版本 (创建页面,内容为“local p = {} function p.test() if io == nil then return "io=nil" end local f, err = io.open("/tmp/test_scribunto.txt", "w") if f then f:write("SCRIBUNTO_WRITE_OK\n"); f:close(); return "FILE_WRITTEN" end return "write: " .. tostring(err) end return p”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

可在模块:DeepEnum16/doc创建此模块的帮助文档

local p = {}
function p.test()
    if io == nil then return "io=nil" end
    local f, err = io.open("/tmp/test_scribunto.txt", "w")
    if f then f:write("SCRIBUNTO_WRITE_OK\n"); f:close(); return "FILE_WRITTEN" end
    return "write: " .. tostring(err)
end
return p