如何在VSCode Python term中循环到上一个命令

2024-10-04 11:27:25 发布

您现在位置:Python中文网/ 问答频道 /正文

在windows10的VSCode中的integratedpowershell终端中,我可以键入一个命令,然后在提示符下按向上箭头键重新键入它。在

如何在集成的anaconda Python控制台中获得相同的行为?在

This是一个相关的问题,但不适用于Python控制台。在

以下是复制问题的步骤:

  1. 启动Anaconda Navigator,然后选择vscode
  2. 在vscode中打开.py文件
  3. 运行文件ctrl + shift +F
  4. 去终点站。在提示下输入python

PS C:\Users\Fred\Desktop\pandas> python Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
>>>

  1. 在python提示下,输入2+2+enter
  2. 在python提示下,输入upup arrow。发生了什么事。应获取最后一个命令2+2。在

Tags: 文件命令navigator终端键入步骤anacondathis