根据您的个性需求进行定制 先人一步 抢占小程序红利时代
#Author Kang try: name = [1,2,3] print(name[2]) print(name[3]) #代码发生错误,执行Expection except Exception as e: #抓取所有错误 print("错误信息:",e)
结果: 3 错误信息: list index out of range
首页
电话
微信
联系