# Author:Adminone names = ['alex','jack'] data = {} try: names[3] data['name'] except Exception as e : print("出错了",e) #不同错误统一处理