摘要: 集合: 1 list_1 = [1,2,3,3] 2 list_1 = set(list_1)#集合的用法 3 print(list_1,type(list_1)) 4 5 6 list_2 = set([3,4,5]) 7 print(list_1,list_2) 交集和交集运算符: 1 list 阅读全文
posted @ 2018-08-20 14:08 archerzon 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 在退出系统,打印购物清单后,wait 2s再退出 1 #Author:Archer Zon 2 import time 3 product_list = [ 4 ('iPhone X', 5800), 5 ('Mac Pro', 10800), 6 ('Bike', 800), 7 ('Coffe' 阅读全文
posted @ 2018-08-20 13:24 archerzon 阅读(121) 评论(0) 推荐(0) 编辑