10 lines
221 B
Python
10 lines
221 B
Python
# base.py
|
|
class BasePuzzle:
|
|
"""谜题基类"""
|
|
|
|
def refresh(self):
|
|
raise NotImplementedError("谜题对象未实现 refresh 方法")
|
|
|
|
def __str__(self):
|
|
return f"谜题: {type(self).__name__}"
|