Archived
0
0
This commit is contained in:
2025-10-26 11:33:08 +08:00
parent 809a6dbe75
commit 98f225efe4
13 changed files with 95 additions and 57 deletions

View File

@@ -1,16 +1,11 @@
# mcq.py
from base import BasePuzzle
import random
@BasePuzzle.register("multiple_choice")
class MCQPuzzle(BasePuzzle):
"""选择题谜题生成器
"""选择题谜题生成器"""
Args:
mapping: 正确选项映射 {问题: 答案}
jammer: 干扰项列表
max_riddles_num: 最大生成谜题数 (默认2个)
prefix: 问题前缀
"""
def __init__(
self,
mapping: dict,