gpt4 book ai didi

Please tell me how to correct the following issue [closed](请告诉我如何更正以下问题[已关闭])

转载 作者:bug小助手 更新时间:2023-10-25 13:41:08 34 4
gpt4 key购买 nike




C:\Users\User>(r"C:\Users\User\Desktop\fix2.py")
The filename, directory name, or volume label syntax is incorrect.

C:\Users\User>(r“C:\Users\User\Desktop\fix2.py”)文件名、目录名或卷标语法不正确。


I started with the error below and as I attempt to correct based on older posts here, I continue to get the error above

我从下面的错误开始,当我尝试根据这里的旧帖子更正时,我继续收到上面的错误


C:\Users\User>NameError: name 'python' is not defined
'NameError:' is not recognized as an internal or external command,
operable program or batch file.

C:\USERS\USER>NameError:未定义名称‘python’。未将‘NameError:’识别为内部或外部命令、可操作程序或批处理文件。


C:\Users\User>python (r"C:\Users\User\Desktop\fix - Copy.py")
python: can't open file 'C:\Users\User\(rC:\Users\User\Desktop\fix - Copy.py)': [Errno 22] Invalid argument

C:\USERS\USER>PYTHON(r“C:\USERS\USER\Desktop\FIX-Copy.py”)PYTHON:无法打开文件‘C:\USERS\USER\Desktop\FIX-Copy.py)’:[Errno 22]参数无效


C:\Users\User>(r"C:\Users\User\Desktop\fix2.py")
The filename, directory name, or volume label syntax is incorrect.

C:\Users\User>(r“C:\Users\User\Desktop\fix2.py”)文件名、目录名或卷标语法不正确。


C:\Users\User>r"C:\Users\User\Desktop\fix2.py"
The filename, directory name, or volume label syntax is incorrect.

C:\Users\User>r“C:\Users\User\Desktop\fix2.py”文件名、目录名或卷标语法不正确。


C:\Users\User> r"C:\Users\User\Desktop\fix2.py
The filename, directory name, or volume label syntax is incorrect.

C:\Users\User> r“C:\Users\User\Desktop\fix2.py文件名、目录名或卷标语法不正确。


C:\Users\User> r"C:\Users\User\Desktop\fix2.py"
The filename, directory name, or volume label syntax is incorrect.

C:\USERS\USER>r“C:\USERS\USER\Desktop\Fix2.py”文件名、目录名或卷标语法不正确。


C:\Users\User>r"C:\Users\User\Desktop\fix2.py"
The filename, directory name, or volume label syntax is incorrect.

C:\Users\User>r“C:\Users\User\Desktop\fix2.py”文件名、目录名或卷标语法不正确。


C:\Users\User> r"C:\Users\User\Desktop\fix2.py"
The filename, directory name, or volume label syntax is incorrect.

C:\USERS\USER>r“C:\USERS\USER\Desktop\Fix2.py”文件名、目录名或卷标语法不正确。


C:\Users\User>(r"C:\Users\User\Desktop\fix2.py")
The filename, directory name, or volume label syntax is incorrect.

C:\Users\User>(r“C:\Users\User\Desktop\fix2.py”)文件名、目录名或卷标语法不正确。


更多回答

Don't use Python syntax in the Windows command prompt. Just type the path normally without r and parentheses.

不要在Windows命令提示符中使用Python语法。只需正常键入路径,不带r和圆括号。

Could you edit your question to include what you are trying to do? Are you trying to run a Python script from a cmd prompt?

你可以修改你的问题,包括你想要做的事情吗?您是否正在尝试从cmd提示符运行一个Python脚本?

优秀答案推荐

try to write like this:

试着这样写:


C:\Users\User>python "C:\Users\User\Desktop\fix - Copy.py"

make sure the path exists and is written correctly

确保路径存在并且写入正确


更多回答

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com