打开/关闭菜单
Toggle preferences menu
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模块:TestPaper:修订间差异

来自医林拾薪
无编辑摘要
无编辑摘要
第8行: 第8行:
     finalText = finalText..'- '..v..'\n'
     finalText = finalText..'- '..v..'\n'
end
end
finalText = finalText..'</quiz>\n'
     return finalText
     return finalText
end
end
return p
return p

2022年1月23日 (日) 05:51的版本

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

脚本错误:Lua错误:无法创建进程:proc_open(/home/pi/LUA/error.log): Failed to open stream: 权限不够

local p = {}

function p.singleChoice( f )
	local args = f:getParent().args
	local finalText = '<quiz>\n{Question|type="()"}\n'
	local text
	for k, v in pairs( args ) do
    	finalText = finalText..'- '..v..'\n'
	end
	finalText = finalText..'</quiz>\n'
    return finalText
end
return p