You are using a relative path, which means that the program looks for the file in the working directory. The error is telling you that there is no file of that name in the working directory.
import os
cwd = os.getcwd() # Get the current working directory (cwd)
files = os.listdir(cwd) # Get all the files in that directory
print("Files in %r: %s" % (cwd, files))
这将打印当前的工作目录和其中的所有文件。
Another way to tell the open() function where your file is located is by using an absolute path, e.g.: