python命令如何后退

原创
ithorizon 7个月前 (09-29) 阅读数 71 #Python

Python命令如何后退

在Python中,如果你想在命令行中后退,你可以使用以下命令:

1、cd 命令:用于更改当前目录,要返回到上一级目录,可以使用cd ..

2、history 命令:用于显示命令历史记录,你可以使用上下箭头键来选择并重新执行之前的命令。

3、! 命令:用于在Jupyter notebook中执行shell命令,要在Jupyter notebook中返回上一级目录,可以使用!cd ..

这些命令可以帮助你在Python命令行或Jupyter notebook中后退到之前的目录或命令。



热门