Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open the python command line

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Today, the editor will share with you the relevant knowledge points about how to open the python command line. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look.

Interactive interpreter, as can be seen from its name, is interpreted interactively. That is, you enter a sentence, and it explains it, just like a person is talking to a machine. Python also provides such an interactive interpreter. Here are the ways to open various python interactive interpreters.

Python has its own interactive interpreter to open:

Press WIN+R to open and run, enter cmd and click OK to enter the command prompt, and enter python to enter the interactive interpreter that comes with python.

If ipython is installed, enter ipython at the command prompt to enter the ipython interactive interpreter.

Note: the ipython interpreter does not begin with >, but with In []:.

How to open IDLE's interactive interpreter:

In the start menu bar, find the python folder where there is an IDLE application that opens IDLE shell (that is, IDLE's interactive interpreter). Unlike other IDE, IDLE enters shell mode by default.

Note: some partners may not install this software when installing python, you can choose to reinstall python to get IDLE (re-click the installation package, install as modify, check IDLE).

How to open pycharm's interactive interpreter:

There is a python console (python console) in the bottom status bar of pycharm. Click to see python's interactive interpreter (pycharm's interactive interpreter also uses ipython).

Jupyter notebook:

As an advanced upgrade of ipython, it is also an interactive interpreter. However, the startup method is quite special, you need to start a web server after typing jupyter notebook on the command line, and then a web page pops up, and a new file is created on the web page, which can be operated like an interactive interpreter.

Note: do not turn off the command line after startup, turning off is equivalent to shutting down the server. If the web page does not pop up or is closed after the pop-up, you can visit one of the two URLs shown above (just fill in the localhost: Port number, such as localhost:8888).

These are all the contents of the article "how to open the python command line". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report