After ten days of self-learning Python from zero basis, I wrote a small game with source code and software download link!

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

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325340797&siteId=291194637