Click on the above “Beginner Visual Learning”, choose to add “Star” or “Top”
Important content delivered promptly
1. Bubble Sort

2. Method to calculate x to the power of n

3. Calculate a*a + b*b + c*c + …

4. Calculate factorial n!



5. List all files and directories in the current directory

6. Convert all strings in a list to lowercase:

7. Output the paths of all files and folders in a certain directory

8. Output all file paths in a certain directory and its subdirectories

9. Output all files with the .html extension in a certain path and its subdirectories


10. Reverse the key-value pairs of the original dictionary to create a new dictionary


11. Print the multiplication table of 9

By specifying the value of the end parameter, you can cancel the newline character at the end, achieving no line break.
12. Replace all 3s in the list with 3a

13. Print each name

** Being good at using range() will make problems easier
14. Merge and deduplicate

15. Two ways to randomly generate verification codes




16. Calculate the square root

17. Determine if the string consists only of digits


18. Determine odd or even number


19. Determine leap year



20. Get the maximum value


21. Fibonacci Sequence
The Fibonacci sequence refers to a sequence of numbers 0, 1, 1, 2, 3, 5, 8, 13; specifically noted: the 0th term is 0, the 1st term is the first 1. Starting from the third term, each term is the sum of the previous two terms.

22. Convert decimal to binary, octal, hexadecimal

23. Greatest Common Divisor

23. Least Common Multiple

24. Simple Calculator

25. Generate Calendar

26. File IO

27. String Judgment

28. String Case Conversion

29. Calculate the number of days in each month

30. Get yesterday’s date

Good news!
Beginner Visual Learning Knowledge Circle
Is now open to the public👇👇👇
Download 1: OpenCV-Contrib Extension Module Chinese Version Tutorial
Reply "Extension Module Chinese Tutorial" in the "Beginner Visual Learning" public account backend to download the first OpenCV extension module tutorial in Chinese, covering installation of extension modules, SFM algorithms, stereo vision, target tracking, biological vision, super-resolution processing, and more than twenty chapters of content.
Download 2: Python Visual Practical Projects 52 Lectures
Reply "Python Visual Practical Projects" in the "Beginner Visual Learning" public account backend to download 31 visual practical projects including image segmentation, mask detection, lane line detection, vehicle counting, eye line addition, license plate recognition, character recognition, emotion detection, text content extraction, and face recognition, helping to quickly learn computer vision.
Download 3: OpenCV Practical Projects 20 Lectures
Reply "OpenCV Practical Projects 20 Lectures" in the "Beginner Visual Learning" public account backend to download 20 practical projects based on OpenCV for advanced learning of OpenCV.
Group Chat
Welcome to join the public account reader group to communicate with peers. Currently, there are WeChat groups for SLAM, 3D vision, sensors, autonomous driving, computational photography, detection, segmentation, recognition, medical imaging, GAN, algorithm competitions, etc. (will gradually be subdivided). Please scan the WeChat number below to join the group, and note: "Nickname + School/Company + Research Direction", for example: "Zhang San + Shanghai Jiao Tong University + Visual SLAM". Please follow the format, otherwise, you will not be approved. After adding successfully, you will be invited to enter the relevant WeChat group based on your research direction. Please do not send advertisements in the group, otherwise, you will be removed from the group. Thank you for your understanding~