Skip to content

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

Open
@OctopusLian

Description

@OctopusLian

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'

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions