Python Basics 098: Summary of Knowledge Points

Collection of knowledge points (1)

  1. The role of f.seek(3,0)
  2. The role of import
  3. remainder operation
  4. Usage of anonymous function lambda
  5. How to get the value corresponding to a key in a dictionary
  6. String copy operation
  7. String slicing operation
  8. for loop iterates through each character in the string
  9. Understand the two statements break and continue, and pay attention to the difference
  10. What is the function to get the boolean value of a variable

Collection of knowledge points (2)

  1. What command is used to install the module?
  2. Know what are the commonly used python keywords
  3. What are the common base systems?
  4. The for loop traverses strings, tuples, lists, range(), etc.
  5. Operator: //
  6. Usage of built-in function sorted
  7. Positional parameters, keyword parameters, default parameters, variable parameters of the function, the order when the function is defined
  8. What is the function in the os module to get the current directory

Collection of knowledge points (3)

  1. Under what circumstances does print() print a string before it breaks into a new line?
  2. How efficient is python's execution?
  3. Usage of and, or, not
  4. Usage of if elif else statement
  5. String find() function usage
  6. Usage of the split() function of strings
  7. What are the benefits of combining data types
  8. Usage of the pop function of the list
  9. After the file is opened but not closed, can I delete the file directly by right-clicking it?

Collection of knowledge points (4)

  1. Ability to analyze the output of nested for loops
  2. Usage of replace function
  3. Dictionary items() method
  4. list comprehension
  5. Modify global variables inside a function
  6. Create a txt file and write the string into the txt file

Collection of knowledge points (5)

  1. Courseware Case: Top Ten Singers
  2. 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?

Guess you like

Origin blog.csdn.net/PoGeN1/article/details/131352333