From 17a9677dd409f46f0b508c973f819cb11e570126 Mon Sep 17 00:00:00 2001 From: Jrohy Date: Wed, 23 Feb 2022 16:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=89=E9=A1=B9=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v2ray_util/util_core/selector.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/v2ray_util/util_core/selector.py b/v2ray_util/util_core/selector.py index 2967ca36..4d437302 100644 --- a/v2ray_util/util_core/selector.py +++ b/v2ray_util/util_core/selector.py @@ -21,6 +21,10 @@ def select(self): else: choice = input(self.msg) + if not choice: + print("use {}".format(self.collection[0])) + return self.collection[0] + if not choice.isnumeric(): raise RuntimeError(_('input error, please check is number'))