如何在 Windows 下的 IPython 中更改驱动器号? 例如,!cd W: 不会使 W: 成为当前路径,它只是更改路径如果您要更改为驱动器 W。 使用 !cmd 更改为 dos shell,然后更改为 W: 对 IPython shell 没有任何影响。
最佳答案
从 cd ?
命令:
Note that !cd doesn't work for this purpose because the shell where !command runs is immediately discarded after executing 'command'.
因此,只需使用 cd
,并确保引用路径,这样驱动器号后的冒号就不会被误解。
cd 'W:'
关于windows - 如何在 Windows 下的 IPython 中更改驱动器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15614465/