Python学习笔记合集(总结)
posted on 2023-05-21 18:12
read(749)
comment(0)
like(11)
collect(2)
Collection of Python study notes
Collection of Python study notes (summary)
Click on the blue font to jump to the details page
On the first day, I mainly talked about basic Python statements (Part 1)
Python Basic Statements (Part 1)
- note
- output
- identifier
- multi-line statement
On the second day, I mainly talked about the basic statements of Python (Part 2)
Python Basic Statements (Part 2)
- Lines and indentation
- keywords
- type of data
The third day mainly talked about import package (library) and Python conditional statement
import import package (library) and Python conditional statement
- import package (library)
- Conditional statements
- branch statement
- multi-branch statement
Python loop statement
- While loop statement
- For loop statement
- nested loop statement
- break statement
- continue statement
- pass statement
The fifth day mainly talked about PythonNumber integers
PythonNumberInteger
- Four different numeric types are supported
- Number type conversion
- math function
- random number function
- Trigonometric functions
- mathematical constant
The sixth day mainly talked about Python strings
python string
- access a value in a string
- string operators
- string formatting
The seventh day mainly talked about Python lists
Python list
- the list
- Add list element
- delete list element
The eighth day mainly talked about Python tuples
Python tuple
- tuple
- tuple operator
- tuple built-in functions
The ninth day mainly talked about Python dictionaries
python dictionaries
- dictionary
- create empty dictionary
- access the values in the dictionary
- delete dictionary element
- Properties of Dictionary Keys
- Dictionary built-in functions and methods
The tenth day mainly talked about Python collections
Python collection
- gather
- Basic operations on collections
- Complete list of collection built-in methods
The eleventh day mainly talked about iterators and generators
Iterators and Generators
- iterator
- StopIteration
- Builder
The twelfth day mainly talks about Python date
python date
- date and time
- time tuple
- time date format
The thirteenth day mainly talked about Python functions
python function
- define a function
- function call
- Parameter passing
- pass mutable object instance
The fourteenth day mainly talked about Python file I/O
Python file I/O
- Open and close files
- Properties of the File object
- file location
The fifteenth day mainly talked about the Python os module
Python os module
- Rename and delete files
- Table of contents
The sixteenth day mainly talked about Python object-oriented (on)
Python object-oriented (Part 1)
- Introduction to Object-Oriented Technology
- create class
- Create an instance object
- access properties
The seventeenth day mainly talked about Python object-oriented (below)
Python object-oriented (Part 2)
- built-in class properties
- Object destruction (garbage collection)
- class inheritance
- Class Properties and Methods
The eighteenth day mainly talked about Python regularization
Python regular
- regular expression
- search and replace
The nineteenth day mainly talked about the Python database (on)
Python database (on)
- What is MySQLdb?
- How to install MySQLdb?
- Database Connectivity
- Create database tables
- database insert operation
The twentieth day mainly talked about the Python database (below)
Python database (Part 2)
- Database query operation
- Database update operation
- Database delete operation
- Execute business
- error handling
The twenty-first day mainly talks about Python network programming
Python network programming
- What is Socket?
- socket() function
- Socket object (built-in) methods
- Python Internet Module
The twenty-second day mainly talks about sending emails with Python (Part 1)
Sending mail with Python (Part 1)
- SMTP service
- SMTP access from mail provider
The twenty-third day mainly talked about sending emails with Python (Part 2)
Sending mail with Python (Part 2)
- Python sends email in HTML format
- Python send email with attachment
- Add pictures to HTML text
The twenty-fourth day mainly talks about Python threads (Part 1)
Python threads (Part 1)
- Start learning Python threads
- thread module
- Create threads using the Threading module
The twenty-fifth day mainly talked about Python threads (Part 2)
Python thread (Part 2)
- thread synchronization
- Thread priority queue (Queue)
The twenty-sixth day mainly talked about Python JSON
Python JSON
- JSON function
- Use a third-party library: Demjson
Relevant information:
Python study notes Numpy collection (summary)
Category of website:
technical article >
Blog