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

IOError: [Errno 2] No such file or directory: 'learning_python.txt' #8

Open
OctopusLian opened this issue Aug 4, 2019 · 0 comments

Comments

@OctopusLian
Copy link
Owner

10-1练习

--- Reading in the entire file:
Traceback (most recent call last):
  File "./Python-Crash-Course-Homework/chapter10/10-1.py", line 7, in <module>
    with open(filename) as f:
IOError: [Errno 2] No such file or directory: 'learning_python.txt'

文件确实存在,文件名没有写错,路径正确,是哪里出了问题?

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