Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong location code in 3.4 异常 #17

Open
EricDong opened this issue Mar 28, 2022 · 0 comments
Open

wrong location code in 3.4 异常 #17

EricDong opened this issue Mar 28, 2022 · 0 comments

Comments

@EricDong
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant