We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如图,还是会报NameError
The text was updated successfully, but these errors were encountered:
老师这个例子应该是有问题的,他想表达的应该是 try: f1 = open('name.txt') i = 1 / 0 except Exception as e: print(e) finally: f1.close()
你遇上这个问题应该是和java关闭流一样,一般finally会进行一个判空再进行关闭
Sorry, something went wrong.
No branches or pull requests
如图,还是会报NameError
The text was updated successfully, but these errors were encountered: