Open EricDong opened 2 years ago
handling a <class 'ZeroDivisionError'> should below >>>x
handling a <class 'ZeroDivisionError'>
>>>x
>>> try: x = 1/0 except ZeroDivisionError as e: print('handling a', type(e)) x = 0 handling a <class 'ZeroDivisionError'> >>> x 0
handling a <class 'ZeroDivisionError'>
should below>>>x