Home  >  Article  >  Backend Development  >  How to delete the wrong writing in python

How to delete the wrong writing in python

coldplay.xixi
coldplay.xixiOriginal
2020-10-23 14:43:3023806browse

How to delete python typos: 1. Under the Windows operating system, you can use backspace to cancel the entered characters; 2. Under the Unix system, use delete to delete; 3. Under Ubuntu, use [ ctrl backspace】Delete.

How to delete the wrong writing in python

How to delete errors in python:

Python’s commonly used input function raw_input() is used during the input process If you make a mistake, you cannot backspace to cancel the entered characters like you can on the command line, and you have to re-enter.

How can I cancel the input character backspace similar to the command line?

This problem is caused by different operating systems:

● Under the Windows operating system, if you make a mistake during the input process of raw_input(), you can use backspace to cancel the input. Characters;

● In some Unix-like systems, delete is used instead of backspace;

● Under Ubuntu, delete is not possible, but ctrl backspace is.

Extended Learning

How to cancel the entered wrong characters during the python input process?

This problem is caused by different operating systems:

Under the Windows operating system, if you make a mistake during the input process of raw_input(), you can use backspace to cancel the entered characters;

In some Unix-like systems, delete is used to delete , instead of backspace;

Under Ubuntu, delete is not possible, but ctrl backspace is.

Related free learning recommendations: python tutorial(Video)

The above is the detailed content of How to delete the wrong writing in python. 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