2019年11月3日

摘要: #day集合知识点总汇 set1 = set({1,2,3}) set2 = {1,2,3,4,5} # set1.add("李明俊") # set1.update("abc") # # set1.pop() # set1.remove('a') # set1.clear() # del set1 for i in set2: print(i,type(i)) # 交集 print(set2 & 阅读全文

posted @ 2019-11-03 17:05 明俊 阅读(81) 评论(0) 推荐(0)

摘要: # dic1 = { # "key1":[], # "key2":[], # } # li = [11,22,33,44,55,66,77,88,99,90] # for i in li: # if i = 0 and p.isdigit(): gwc[info].append (p) if rmb.isdigit(): ... 阅读全文

posted @ 2019-11-03 16:37 明俊 阅读(95) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3