摘要: 异常处理报错格式及顺序 try: print("try报错 就匹配执行except类型,没有则报错,Exception指定所有报错") except Exception as e: print(e) else: print("如果try没报错,执行else") finally: print("无论执 阅读全文
posted @ 2017-08-25 10:50 Gavinkwok 阅读(180) 评论(0) 推荐(0) 编辑