- 帖子
- 14
- 精华
- 0
- 积分
- 103
- 阅读权限
- 20
- 注册时间
- 2019-11-5
- 最后登录
- 2020-1-15
|
找不到路径!!!!!
f = open('a.txt')
data = f.read()
print(data)
f.close()
----------------------------------------------------------------------------------------------------------------------------------
"C:\Program Files\Python38\python.exe" C:\Users\23593\Desktop\.idea\python练习\读文件.py
Traceback (most recent call last):
File "C:\Users\23593\Desktop\.idea\python练习\读文件.py", line 1, in <module>
f = open('a.txt')
FileNotFoundError: [Errno 2] No such file or directory: 'a.txt' |
|