首页 > PyCharm提示:too broad exception clause,是什么意思?

PyCharm提示:too broad exception clause,是什么意思?

使用try-except的时候,PyCharm在except单词上提示:too broad exception clause,是什么意思?


就是字面含义,你捕获的异常过于宽泛了,没有针对性,可以通过指定精确的异常类型来解决

【热门文章】
【热门文章】