How to open the Python shell in the Windows command line

I don’t know if you have ever been troubled, that is how windowsto open the pythonbuilt-in command line in the built-in command line shell(编译器), today I studied it and shared it. The actual process is very simple.
Step 1: Use to Win + Ropen the running interface, as shown in the figure below:
Insert picture description here

Step 2: Input cmdand click 确定, because my system language is not Chinese, so the picture above is different, but it does not affect. The result is shown in the figure below:
Insert picture description here
Step 3: Enter idleand press Enter(回车键). The result is shown in the following figure:
Insert picture description here
However, shellthere is a problem with the built-in opened by this method , that is, only the pythonbuilt-in module can be used, and the module added by the user cannot be used. So how to solve this problem? If you are using a Pycharmcompiler, this problem can be ignored, because users can use the modules they add. If you are using the Anaconda Spyder compiler, you can refer to How to open python with idle in Anaconda .

If you find it useful, please raise your hand and give a thumbs up so that more people can see it~

Guess you like

Origin blog.csdn.net/u011699626/article/details/108691911