day07_08 报错继续运行

# Author:Adminone

names = ['alex','jack']
data = {}

try:
    names[3]
    data['name']

except Exception as e :
    print("出错了",e)      #不同错误统一处理
posted @ 2021-06-06 12:13  flytoyou  阅读(11)  评论(0编辑  收藏  举报