我是Python的初学者,我读过《 Crash Course Python》一书,当我尝试从Python终端运行程序时出现问题,该命令是文本命令,我只需要输入文件夹的地址即可,但我已经提到了错误,我已经花了2天的时间来尝试解决它,但是它不起作用。该命令为C:\> cd Users\Rodrigo\Desktop\python_work
我尝试将命令放在r"(here is the command)"
中,然后
C:\\> cd Users\\Rodrigo\\Desktop\\python_work
但这不起作用
>>> C:\> `cd` Users\Rodrigo\Desktop\python_work
File "<stdin>", line 1
C:\> cd Users\Rodrigo\Desktop\python_work
^
SyntaxError: unexpected character after line continuation character
当我尝试使用命令r“ C:> cd Users \ Rodrigo \ Desktop \ python_work \”时,只需重复如下命令即可:'C:\> cd Users \ Rodrigo \ Desktop \ python_work'