The most important thing in self-learning a language is to give yourself feedback in time, so it is very important to often write some small programs to cultivate a sense of language. After writing, you can summarize the scattered knowledge points used in the program.
The knowledge points used in this program are:
1. Input and output functions (input, print)
2. Assignment statement (=)
3. Define variables (naming conventions for variable names)
4. Data type conversion (int)
5. Import modules (random, os)
6. Module method calls (.randint, .system)
7. Nesting of "while-else loop" and "if-else conditional judgment"
8. Use of escape characters ( )
9. Python comment specification (# and comment content are best left blank)
The program has been converted into .exe format, download link: https://pan.baidu.com/s/1MWYcnnblA6XmQIL0F32T3A Password: vjqo