if __name__ == '__main__':
    msg = '''
       1:查询
       2:添加
       3:删除
       4:修改
       5:退出
       '''
    menu_dic = {

        '1': search,
        '2': add,
        '3': delete,
        '4': modify,
        '5': exit,
    }
    while True:
        print(msg)
        choice = input("操作>>: ").strip()
        if len(choice) == 0 or choice not in menu_dic:continue
        if choice == '5':break
        menu_dic[choice]()

相关文章:

  • 2021-07-07
  • 2021-09-20
  • 2021-12-28
  • 2022-01-08
  • 2021-06-09
  • 2021-09-13
  • 2021-09-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案