sicp-py-zh icon indicating copy to clipboard operation
sicp-py-zh copied to clipboard

wrong location code in 3.4 异常

Open EricDong opened this issue 3 years ago • 0 comments
trafficstars

handling a <class 'ZeroDivisionError'> should below >>>x

>>> try:
        x = 1/0
    except ZeroDivisionError as e:
        print('handling a', type(e))
        x = 0
handling a <class 'ZeroDivisionError'>
>>> x
0

EricDong avatar Mar 28 '22 09:03 EricDong