Home > Article > Backend Development > How to delete input errors in python
How to delete input errors in python?
Python's commonly used input function raw_input(), if you make a mistake during the input process, 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.
Recommended: "Python Tutorial"
The above is the detailed content of How to delete input errors in python. For more information, please follow other related articles on the PHP Chinese website!