若干改进

This commit is contained in:
2025-09-08 13:44:14 +08:00
parent 5e96fc8138
commit afb7252f71
3 changed files with 81 additions and 5 deletions

View File

@@ -1,11 +1,11 @@
import random
class Puzzle:
class BasePuzzle:
pass
class BlankPuzzle(Puzzle):
class BlankPuzzle(BasePuzzle):
"""填空题谜题生成器
Args:
@@ -41,7 +41,7 @@ class BlankPuzzle(Puzzle):
return f"{self.wording}\n{str(self.answer)}"
class SelectionPuzzle(Puzzle):
class SelectionPuzzle(BasePuzzle):
"""选择题谜题生成器
Args: