Home >Backend Development >Python Tutorial >How to correct errors in python code

How to correct errors in python code

尚
Original
2019-06-28 10:00:3524285browse

How to correct errors in python code

How to modify Python input errors in interactive mode:

Open the IDE that comes with PYTHON, which is SHELL. If we enter incorrect information, it will appear in red.

How to correct errors in python code

At this time, move the cursor to the wrong line of code and click ENTER.

How to correct errors in python code

Then a new line of code will be automatically generated.

How to correct errors in python code

We can modify it based on this, and then click ENTER to output the correct result.

How to correct errors in python code

For more Python related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of How to correct errors in python code. 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:What is pip in pythonNext article:What is pip in python