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脚本?
我是一名优秀的程序员,十分优秀!