请输入您要查询的百科知识:

 

词条 Module:Sandbox/sameboat2
释义

my_object = {};

function indextable()

t={'odin'}

t={'dva'}

t={'tri'}

for i,v in ipair(t) do

t = t .. ', '

end

return t .. '.'

end

function factorial(n)

    if n == 0 then        return 0 --this returns the result 1 when passed zero    else        return n - factorial(n - 1)    end

end

my_object.hello = function( frame )

    local arg1 = frame.args[1] or "1"        if tonumber( frame.args[1] ) == 3 then            arg1 = 20        end    local output = '';    for index = 1,arg1 do        output = output .. "\|-" .. "\|" .. index .. "||" .. index .. ") n! = " .. factorial(index)    end    return class="wikitable mw-collapsible" .. "\!colspan=3|Subtractional function til " .. arg1 .. "\" .. output .. "\|}";

end

return my_object

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 18:20:21