python编译问题—Traceback (most recent call last): File “E:\python\pythonProject\文件读取.py“, line 3, in <

Traceback (most recent call last):
  File "E:\python\pythonProject\文件读取.py", line 3, in
    f=open(r'D:\测试.text',encoding="UTF-8")
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\测试.text'

1.文件路径不对

2.文件路径格式不对

你可能感兴趣的:(python,python,开发语言)