From 432768ed0749802e4d08774410f6d1926e02e59f Mon Sep 17 00:00:00 2001 From: ps2frfkjn <781446156@qq.com> Date: Tue, 21 Nov 2023 12:09:17 +0800 Subject: [PATCH] ADD file via upload --- Quit&Main.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Quit&Main.py diff --git a/Quit&Main.py b/Quit&Main.py new file mode 100644 index 0000000..0d7edc2 --- /dev/null +++ b/Quit&Main.py @@ -0,0 +1,27 @@ +def main():#主函数 + while True: + menum() + choice=int(input('请选择:')) + if choice in [1,2,3,4,5,6,7]: + if choice==7: + answer=input('您确定要退出系统吗?y/n') + if answer=='y': + print('谢谢您的使用') + break + else : + continue + elif choice==1: + insert() + elif choice==2: + search() + elif choice==3: + delete() + elif choice==4: + modify() + elif choice==5: + sort() + elif choice==6: + total() + else: + print('您输入的有误,请重新输入') + main() \ No newline at end of file