diff --git a/search_result.py b/search_result.py new file mode 100644 index 0000000..ff73d34 --- /dev/null +++ b/search_result.py @@ -0,0 +1,7 @@ +# 定义搜索结果类,用于方便处理返回值 +class search_result: + def __init__(self, move=-1, score=0, positions=0, cutoffs=0) -> None: + self.move = move + self.positions = positions + self.cutoffs = cutoffs + self.score = score \ No newline at end of file