简体   繁体   English

Python IDLE 如何从编辑器到 shell

[英]Python IDLE how do I get from editor to shell

If I'm in the Python IDLE editor and the shell is not open, is there some way to open the shell without running a program?如果我在 Python IDLE 编辑器中并且 shell 未打开,是否有某种方法可以在不运行程序的情况下打开 shell? I expect it's something simple that I just can't find.我希望这是我找不到的简单东西。 Thanks谢谢

For Python 3.8 its just Run -> Python Shell if I am understanding your question correctly对于 Python 3.8,如果我正确理解你的问题,它只是Run -> Python Shell

python外壳图像

For windows:对于窗户:

  • Win+R to open run window Win+R打开run窗口
  • cmd to open, well, the command line cmd打开,嗯,命令行
  • python to run python. python运行 python。 Make sure you've added the python.exe file to PATH确保您已将python.exe文件添加到 PATH

Duh.呃。 I don't know how many thousands of times I've clicked on Run and never seen anything below Run Module.我不知道我点击了多少万次 Run 却从未在 Run Module 下看到过​​任何东西。 Thanks.谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM