Home >Backend Development >Python Tutorial >Where to press in the python3 terminal to break out of the loop

Where to press in the python3 terminal to break out of the loop

anonymity
anonymityOriginal
2019-06-11 11:36:522501browse

Python is a computer programming language. It is an object-oriented dynamic type language that was originally designed for writing automated scripts (shells). With the continuous updates of the version and the addition of new language features, it is increasingly used for the development of independent and large-scale projects.

Where to press in the python3 terminal to break out of the loop

The python2.6 version is installed by default in MAC and Linux. If you want to start this version, enter python directly to enter the Python terminal.

If you have installed the latest version, such as 3.7, enter python3 to enter the Python terminal.

If you want to exit without closing the terminal, enter the command "exit()", or "quit()", or press "control d".

When the program is executing or in a loop, you can use "ctrl c" to stop.

The above is the detailed content of Where to press in the python3 terminal to break out of the loop. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Can python input Chinese?Next article:Can python input Chinese?