Python : 名片管理系统(代码)

    xiaoxiao2022-07-12  146

    “”" 1.定义主程序框架 2.欢迎界面 3.3个分支功能 3.1新建名片 3.2查询所有 3.3搜索名片 4.0关闭退出 “”" import cards_itools while True: # TODO 选择界面 cards_itools.cards_menu() char_str = input(“请输入您选择的操作:”) print(“您输入的选择是:【%s】” % char_str) if char_str in [“1”,“2”,“3”]: # 1.新建名片 if char_str == “1”: cards_itools.cards_new() # 2.查询所有 elif char_str == “2”: cards_itools.cards_show() # 3.搜索名片 elif char_str == “3”: cards_itools.cards_search()

    elif char_str == "0": break else: print("您的输入错误,请重新输入!")
    最新回复(0)