How to delete python input errors?
If the input function raw_input() is entered wrong during the input process, you cannot cancel the entered characters like in the command line, and you have to enter them again.
How can I cancel the entered character backspace like the command line?
This problem is caused by different operating systems:
● Under Windows operating system, if raw_input() is entered wrong during the input process, you can use backspace to cancel the entered characters;
● In some Unix-like systems, delete should be used instead of backspace for deletion;
● In Ubuntu, delete is not possible, but ctrl+backspace is OK.
Extended Learning
How to cancel the entered wrong characters during python input?
This problem is caused by different operating systems:
In Windows operating system, if raw_input() is entered wrong during the input process, you can use backspace to cancel the entered characters;
In some Unix-like systems, delete should be used instead of backspace;
In Ubuntu, delete is not possible, but ctrl+backspace is OK.
The above are all the relevant knowledge points introduced this time. Thank you for your study and support.