Terminal 常用命令

2021-12-23 18:07:15 浏览数 (1)

放弃当前行,新起一行

control-C will kill the current prompt, abort what you're typing and start a new prompt, and set the return code to 1.

删光标前的东西

control-U deletes everything before the cursor.

The deleted command will be stored in a buffer. Press control-Y to paste the deleted command.

删光标后的东西

control-K deletes everything from the cursor to the end of the line. (Optional: Press End or control-E to jump to the end of the input first.)

查看 python3 的位置

代码语言:javascript复制
which python3

创建虚拟设备 Creating Virtual Environments

https://docs.python.org/3/tutorial/venv.html

创建成功前面会提示进入了venv

0 人点赞