摘要: 异常 lis = ['zouzou', 'jack', 'bob'] name = {'001': 'hello'} try: print(lis[3]) print(name['002']) except KeyError as e: # 将具体的错误信息赋值给e print('没有这个key:' 阅读全文
posted @ 2021-03-25 23:37 邹邹很busy。 阅读(77) 评论(0) 推荐(0)