Summary of reading notes of python from introduction to practice (1-3)

All is the essence, no nonsense, let you learn python quickly!!! 1. print('hello world!') print("Hello Python interpreter!") 2. 2.1 print("Hello Python world!") message = "Hello Python world!" print(message) 2.3 string  #A string is a series of characters. In Python, strings are enclosed in quotation marks, which can ...

Posted by phui_99 on Mon, 07 Feb 2022 08:23:16 +0100

Understanding in Python. What are they? Why use them?

As the most representative language_ Pythonic_ One of the grammar, I believe everyone has heard of or has used the list understanding method. But do you know that there are three types of understanding in this language? In this article, I will discuss what is_ Python_ And why they are used. I'll also discuss when using intelligible expression ...

Posted by chings on Mon, 07 Feb 2022 04:49:47 +0100

Redis operation Python series, redis basic command list | CSDN creation punch in

Reading guide The list type is a simple list of strings, sorted in insertion order. Each list can store up to 232 - 1 elements (more than 4 billion). The list types mainly include the following application scenarios. Personal use is more non paged data lists, or lists with less changes. 1. Message queue List type lpop and rpush (or co ...

Posted by SsirhC on Mon, 07 Feb 2022 00:22:52 +0100

Crawler - crawling to Guiyang house price (Python Implementation)

catalogue 1 Preface 1.1 philosophy brought by survival pressure 1.2 # buying a house & a house slave 2 reptiles 2.1 basic concepts 2.2} basic process of reptile 3 climb the Guiyang house price and write it into the table 3.1 result display 3.2 code implementation (Python)   1 Preface 1.1 philosophy brought by survival pressure ...

Posted by taldos on Sun, 06 Feb 2022 09:49:22 +0100

Reptile Foundation_ urllib

Structure of urllib Library The urllib library contains the following four modules: Request: basic HTTP request moduleerror: exception handling moduleparse: tool moduleRobot parser: identify robots Txt module urlopen method Simple requests can be sent using the urlopen method API urllib.request.urlopen(url, data=None, [timeout,] *, cafile ...

Posted by 01hanstu on Sun, 06 Feb 2022 04:49:52 +0100

Threads and processes

Multi threading module of Py's journey to the West - Mr. Yuan - blog Park (cnblogs.com) Threads and processes What is a thread? Thread is the smallest unit that the operating system can schedule operations. It is included in the process and is the actual operation unit in the process. A thread refers to a single sequential control flow in a pro ...

Posted by beboni on Sun, 06 Feb 2022 04:22:13 +0100

python crawler record

#Introduction to Python crawler 01. Python virtual environment construction Domestic sources are recommended here Anaconda For download, installation and use, please refer to the following article: ubuntu16.04 installation and use of Anaconda3 (detailed)ubuntu16.04 creating python virtual environment using anacondaubuntu view the Python ...

Posted by RP on Sun, 06 Feb 2022 02:26:00 +0100

Python learning notes

About design mode (II) (it also includes the knowledge content of modules and packages) Read the picture file and copy the file with open('Picture name','rb') as f:   #b is binary     with open('New file name','wb') as w:         for line in f.readlines():             w.write(line) print('Picture copy complete') pickle serialization and des ...

Posted by henryhund on Sat, 05 Feb 2022 18:44:03 +0100

Process control based on python

Code block (start with colon and divide the same code block with indentation. This whole is code block) Scope: scope of scope if 10 == 11: print(1) print(2) print(3) print(4)   #Indent: either all use / t Tab, or all use 4 spaces to express the same scope, which cannot be mixed together; if 10 == 10: print(1) print(2)   ...

Posted by jerryroy on Sat, 05 Feb 2022 13:26:34 +0100

Basic data types of python

1, Basic data type 1. Numeric type (int # float bool complex) (1)int integer (positive integer ﹤ 0 ﹤ negative integer) Type gets the type of the value res = =type(invar) print(res) id gets the address of the value res = id(intvar) print(res) Binary shaping intvar = 0b110 print(intvar) print(type(intvar)) print(id(intvar)) Octal shaping ...

Posted by Ricklord on Sat, 05 Feb 2022 13:23:39 +0100