Collection of knowledge points (1)
- The role of f.seek(3,0)
- The role of import
- remainder operation
- Usage of anonymous function lambda
- How to get the value corresponding to a key in a dictionary
- String copy operation
- String slicing operation
- for loop iterates through each character in the string
- Understand the two statements break and continue, and pay attention to the difference
- What is the function to get the boolean value of a variable
Collection of knowledge points (2)
- What command is used to install the module?
- Know what are the commonly used python keywords
- What are the common base systems?
- The for loop traverses strings, tuples, lists, range(), etc.
- Operator: //
- Usage of built-in function sorted
- Positional parameters, keyword parameters, default parameters, variable parameters of the function, the order when the function is defined
- What is the function in the os module to get the current directory
Collection of knowledge points (3)
- Under what circumstances does print() print a string before it breaks into a new line?
- How efficient is python's execution?
- Usage of and, or, not
- Usage of if elif else statement
- String find() function usage
- Usage of the split() function of strings
- What are the benefits of combining data types
- Usage of the pop function of the list
- After the file is opened but not closed, can I delete the file directly by right-clicking it?
Collection of knowledge points (4)
- Ability to analyze the output of nested for loops
- Usage of replace function
- Dictionary items() method
- list comprehension
- Modify global variables inside a function
- Create a txt file and write the string into the txt file
Collection of knowledge points (5)
- Courseware Case: Top Ten Singers
- A palindrome is an integer with the same forward and reverse directions, for example: 9889, write a function: program to judge whether a number is a palindrome, write a function: count the number of palindromes with n digits. Example: 9889 is a 4-digit palindrome number. Write a function: count the number of 4-digit palindrome numbers, that is, what are the 4-digit palindrome numbers and how many are there?