提交 f2fdf74d 编写于 作者: C cuixucui

Fallback function of selecting multiple options at a time

上级 885f5de5
...@@ -353,16 +353,16 @@ class EulerCertification(): ...@@ -353,16 +353,16 @@ class EulerCertification():
test["run"] = True test["run"] = True
continue continue
num_lst = reply.split(" ") # num_lst = reply.split(" ")
for num in num_lst: # for num in num_lst:
try: try:
num = int(num) num = int(reply)
except: except:
continue continue
if num > 0 and num <= len(self.test_factory): if num > 0 and num <= len(self.test_factory):
self.test_factory[num - 1]["run"] = not self.test_factory[num - 1]["run"] self.test_factory[num - 1]["run"] = not self.test_factory[num - 1]["run"]
continue continue
def show_tests(self): def show_tests(self):
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册