python:无法在macbook终端中打开文件[Errno 2]!

2024-10-02 00:37:56 发布

您现在位置:Python中文网/ 问答频道 /正文

在我的macbook air terminal中我写道

python eggshell.py

但我有个错误

python: can't open file 'eggshell.py': [Errno 2] No such file or directory s-user:/ user$

在我得到那个错误之后,我尝试了很多方法,比如指定蛋壳.py是:

^{pr2}$

这样做给了我一个不同的错误2:

OSError: [Errno 2] No such file or directory: 'modules/commands/macOS'

如果你能帮我解决这个问题,我会非常感激的,谢谢。P、 我会附上一张照片蛋壳.py位于

在蛋壳.py实际上位于我的文档中的一个文件夹中,但它也显示在文档中,所以我真的不知道为什么{}不起作用。在

screenshot


Tags: orno文档py错误airdirectoryfile

热门问题