From d33b1f45b4cc8417efeed410476172e93b8a1fe8 Mon Sep 17 00:00:00 2001 From: qing <919836565@qq.com> Date: Fri, 15 Dec 2023 19:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E4=BA=86=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- class123.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class123.py b/class123.py index 1edb0b6..7a0f46f 100644 --- a/class123.py +++ b/class123.py @@ -288,7 +288,7 @@ class Pan123: if not str(file).isdigit(): print("请输入数字") return -1 - if 0 < file < len(self.list): + if 0 <= file < len(self.list): file_detail = self.list[file] else: print("不在合理范围内")