摘要: day 007 1.异常处理 try: lt = [1, 2, 3] lt['a']except Exception as e: # 万能异常 print(e) try: lt = [1, 2, 3] lt['a']except Exception as e: print(e) try: key = 阅读全文
posted @ 2019-08-30 21:44 🍞面包🍞 阅读(161) 评论(0) 推荐(0)
摘要: #day 08 ```pythonx=[11,22,33,44,55,66,77,88,99,90]k1=[]k2=[]dic={}for a in x: if a<66: k2.append(a) elif a>66: k1.append(a)dic.setdefault('k1',k1)dic. 阅读全文
posted @ 2019-08-30 21:36 &#127838;面包&#127838; 阅读(150) 评论(0) 推荐(0)