异常处理
摘要:
常规: list1 = [1,2,3,4,5,] dict1 = {'name':'zmd','age':22} try: list1[5] except IndexError as e: print('错了:',e) 同时捕捉多个错误: list1 = [1,2,3,4,5,] dict1 = { 阅读全文
posted @ 2018-06-10 21:46 zhangmingda 阅读(128) 评论(0) 推荐(0) 编辑
posted @ 2018-06-10 21:46 zhangmingda 阅读(128) 评论(0) 推荐(0) 编辑
posted @ 2018-06-10 17:18 zhangmingda 阅读(122) 评论(0) 推荐(0) 编辑
posted @ 2018-06-10 10:35 zhangmingda 阅读(184) 评论(0) 推荐(0) 编辑