First, learning process Methods 1, learn the process method.
Follow the video process.
The video is a little bit basic and the video speeds up.Familiar with the classmates.
Take notes in many formsDo homework encountered
* * Reprinted from: http://www.cnblogs.com/alex3714/articles/5161349.html**
Re module common methods
Re.match (rule, String): Default starting from the beginning of the match, this mode is ‘^‘ useless.
Re.search ()
Re.findall ()
Celery OverviewFor the definition of celery, first look at the official website:Celery (celery) is a simple, flexible and reliable distributed system that handles a large number of messages and provides the necessary tools to maintain such a
Using Dict and SetdictPython built-in dictionary: dict support, Dict full name dictionary, in other languages also known as map, using key-value (Key-value) storage, with a very fast search speed.For example, suppose you want to find the
Examples of embarrassing events in WikipediaCrawl The embarrassing encyclopedia joke, assuming the page URL is: HTTP://WWW.QIUSHIBAIKE.COM/8HR/PAGE/1Requirements:
Use requests to get page information and extract data with Xpath/re
Get
Python is a 3.5,chrome browser version in early 17.1.chromedriverDownload a chromedriver in http://chromedriver.storage.googleapis.com/index.html?path=2.30/, unzip the exe paste into the chrome installation path, Generally in program Files (x86)
from:http://blog.csdn.net/zhuqiuhui/article/details/531803951. Find the azimuth of two latitude and longitude points, P0 (LatA, Lona), P1 (LATB, lonb) (many blogs do not write very well, summarize here) def getdegree (LatA, Lona, LATB, lonb): "" "
Chr (), UNICHR () and Ord ()The CHR () function returns a corresponding character by using an integer (that is, 0~255) within range (256) as a parameter. UNICHR () is just like it, except that the Unicode character is returned, and the parameter
We already know that there are several types of data that can directly act on the for Loop:
A class is a collection of data types, such as,,, list tuple , and dict set str so on;
One type is generator , including generators and bands yield
Complete example of this article: complete sample codeThis article describes the basic, common ways to create ndarrary, with sample code.First, create through Ndarrayimportas np1.1 One-dimensional arrays= np.array([123])aarray([1, 2, 3])1.2
This article uses the QT4, is the python (x, y) Suite integrates, why does not integrate QT5, does not bother to install AH:)Body:First look at the finished product:The function of this program is to enter the original price and the percentage of
First, the main application areas of Python(1) Cloud computing(2) Web development(3) Scientific calculation, artificial intelligence(4) System operation and maintenance(5) Financial(6) Graphical GUIII. application of Python in some companies(1)
What is a function?The term function is derived from mathematics, but the concept of "function" in programming is very different from the function in mathematics, and the function in programming has many different names in English. In basic it is
Say one of the biggest harvests is this. Close the Stream objectBefore writing Java read the file, the end often to close the stream object, I have not understood, why, I do not use the. Close () method, the file can also be read successfully, the
Powerful Manager ModuleThe previous section implements data sharing in a way that has only two structures, value and array.Python provides a powerful manager module dedicated to data sharing.He supports a number of types, including:Value, Araay,
Learning to polymorphic, not sure whether they fully understand the Python polymorphism, so Google watched a lot of information and literature, found that many programmers speak too abstract, not easy for beginners to understand, this violates the
1 #!/usr/bin/python32 #-*-coding:utf-8-*-3 #calculates the content of individual strings in a string4Str='ADFADFAFDFAAFASDFASDCADF'5 fromCollectionsImportCounter6str1=Counter (str)7Keys=sorted (STR1)#you can return unique values in str and sort by
Requests-toolbelt1. Official document Address: Requests-toolbelt official documents2. Installation of the environment
Pip Install Requests-toolbelt
Multipart/form-data Pass Filefrom requests_toolbelt import MultipartEncoderimport
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service