因此,我尝试在 mac 终端中更改 PYTHONPATH,结果如下:
>>> PYTHONPATH = "${PYTHONPATH}:~/Desktop/Python/Modules"
>>> export PYTHONPATH
File "<stdin>", line 1
export PYTHONPATH
^
SyntaxError: invalid syntax
我究竟做错了什么?
因此,我尝试在 mac 终端中更改 PYTHONPATH,结果如下:
>>> PYTHONPATH = "${PYTHONPATH}:~/Desktop/Python/Modules"
>>> export PYTHONPATH
File "<stdin>", line 1
export PYTHONPATH
^
SyntaxError: invalid syntax
我究竟做错了什么?