python mind map
Source code: https://blog.csdn.net/qq_44647926/article/details/88536654 Study notes: http://www.ifindbug.com/doc/id-58528
Python core programming
install python
in linux environment
Install dependencies
yum -y install zlib-devel bzip2-devel openssl-devel
zipper 3. Infinite iterator (1) count(start=o, step=1) -- count (2) cycle(iterable) -- loop (3) repeat(object[, times]) -- repeat 4 .Other (1) chain(iterables) - chain (2) enumerable(iterable, start=0) - enumeration (built-in in Python
pass through the wall, but the game fails after it bites itself.
2. Overall design of the game
2.1 The overall design framework of the game
Third, the compiled language and the description of the library files used
3.1 Python
1 Python Definition
Python is an easy-to-learn scripting language that combines interpreted, compiled, interactive, and object-oriented . Python provides high-level data structures, and its syntax and
This reference: http://www.ifindbug.com/doc/id-79297/name-python-string-formatted-output.html Main blog: Python programming notes
Python visualization: font settings in the figure
PythonIt is very convenient to use for drawing, usingmatplotlib, you can achieve a lot
python DOS attack 2 version
#!/usr/bin/ env python
import socket
import time
import threading
#Pressure Test, ddos tool
# ---------------------------
MAX_CONN = 10
PORT = 80
HOST = " 10.0.0.6 "
PAGE = " /index.html
must be str, not int
When other types want to output to a file they need to be turned into strings:
Two: Traverse the file
Directory Structure:
?12345678910111213import osimport os.path rootdir = "C:\python\day2
Table of contentsFormatted output (% usage and format usage)Super detailed usage of python beautiful soup library
Usage of os module in python
Common modules of automated operation and maintenance Python series (5)
The most
Bubble Sort:
?12345678li=[6,4,9,8,2,0,1,3,5,7]for iin range(len(li)-1): for jin range(i+1,len(li)): if li[i] > li[j]: tmp = li[j] li[j] = li[i] li[i] = tmpprint li
result:
[[email protected] xiao]# python
http://www.ifindbug.com/doc/id-53834/name-python-gadget.html _
python copy, delete file code, python code error restart
python traverses and deletes all pyc files in the specified directory
Web scraping
python multithreading
First, the concept of thread
A thread is the basic unit by which the CPU allocates resources. When a program starts
python decorator
More dry goods
Distributed combat (dry goods)spring cloud combat (dry goods)mybatis combat (dry goods)spring boot combat (dry goods)React introductory combat (dry goods)Building Small and
Khannota python
More dry goods
Distributed combat (dry goods)spring cloud combat (dry goods)mybatis combat (dry goods)spring boot combat (dry goods)React introductory combat (dry goods)Building Small and
python fibonacci
More dry goods
Distributed combat (dry goods)spring cloud combat (dry goods)mybatis combat (dry goods)spring boot combat (dry goods)React introductory combat (dry goods)Building Small and