越界会报什么错 👁️ 0 人浏览 💬 0 人评论 ❤️ 添加收藏 运行下面这段程序,它把错误类型打出来:a = [1, 2, 3] try: a[10] except Exception as e: print(type(e).__name__)
全部评论