Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 79d4135

Browse files
committed
feat:新增全选功能🚀
1 parent 8ae629d commit 79d4135

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

my_xxt/my_tools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ def show_course(courses: list, console: Console) -> None:
301301

302302
def select_users(users: dict, console: Console) -> list:
303303
user_list = []
304-
users_id = console.input("[yellow]请选择你要完成此作业的账号 如(1,2,3) 英文逗号:")
304+
users_id = console.input("[yellow]请选择你要完成此作业的账号 如(1,2,3) 英文逗号 全选请输入 all :")
305+
if users_id == "all":
306+
return users["users"]
305307
users_id = users_id.replace(" ", "")
306308
users_id_list = users_id.split(",")
307309
try:

0 commit comments

Comments
 (0)