From 3f3235ddf0ccf5c864a70ea438216dc7f05c80e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E5=B0=8F=E4=B8=98?= <49586948+Yuerchu@users.noreply.github.com> Date: Thu, 30 Jan 2025 12:34:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20found.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除 单测模式 --- found.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/found.py b/found.py index 1b23ac1..f9f0fda 100644 --- a/found.py +++ b/found.py @@ -78,4 +78,7 @@ def create() -> None: loading.close() loading.clear() - return \ No newline at end of file + return + +if __name__ not in {"__main__", "__mp_main__"}: + raise Exception('不支持单测模式,请从main.py启动') \ No newline at end of file