Why does the exception handler work when the zero division error is inside the else clause but not in the commented out line below

前端 未结 0 1520
南笙
南笙 2021-01-02 02:16

Working on exception handling in python, in the code below the print(n/0) line currently executes the except ZeroDivisionError print s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题