摘要: 1 # 用来存储名片的列表 2 card_infors = [] 3 4 5 def print_menu(): 6 # 1. 打印功能提示 7 print("=" * 50) 8 print(" 名片管理系统") 9 print("1. 增加一个新名片") 10 print("2. 删除一个名称") 11 ... 阅读全文
posted @ 2018-07-22 20:11 饭桶大叔 阅读(1858) 评论(0) 推荐(0) 编辑
摘要: 1 a = [11,11,22,33,44,55,22,33,44] 2 3 # 方法一 4 # b = [] 5 # for i in a: 6 # if i not in b: 7 # b.append(i) 8 # print(b) 9 10 f = set(a) # 集合去重 11 b = list(f) # 类型转换 12... 阅读全文
posted @ 2018-07-22 18:34 饭桶大叔 阅读(114) 评论(0) 推荐(0) 编辑