card = [{"name": "test", "iphone": "test ", "qq": 'test'
, "email": "test"}]
def add_card():
name = str(input("请输入你的姓名 : "))
iphone = str(input("请输入你的电话 :"))
qq = str(input("请输入你的QQ :"))
email = str(input("请输入你的邮箱 :"))
user = {"name": name, "iphone": iphone, "qq": qq
, "email": email}
card.append(user)
print("添加成功!!!")
def show_card():
print("姓名\t\t\t电话\t\t\tQQ\t\t\t邮箱")
for c in card:
print("%s\t\t\t%s\t\t\t%s\t\t\t%s" % (
c["name"],
c["iphone"],
c["qq"],
c["email"]))
def select_card():
find_str = str(input("请输入需要搜索的用户名"))
python制作简易名片管理系统
最新推荐文章于 2023-04-13 15:18:35 发布