From 24a962428f9c2d20259ff7caa0131cc45956339d Mon Sep 17 00:00:00 2001 From: pf92xr8tq <3464529083@qq.com> Date: Mon, 3 Jun 2024 01:26:05 +0800 Subject: [PATCH] ADD file via upload --- cards_main.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 cards_main.py diff --git a/cards_main.py b/cards_main.py new file mode 100644 index 0000000..742449d --- /dev/null +++ b/cards_main.py @@ -0,0 +1,26 @@ +import cards_tools + + +while True: + + + cards_tools.show_menu() + + action = input("请您输入操作编号") + print("您选择的操作是【%s】" % action) + + if action in ["1", "2", "3"]: + if action == "1": + cards_tools.new_a_card() + + if action == "2": + cards_tools.show_all_cards() + + if action == "3": + cards_tools.search_card() + elif action == "4": + print("感谢您的使用 再见") + break + + else: # 提示输入错误 + print("您输入的选项有误 请重新输入") \ No newline at end of file