python reptile framework scrapy record and organize learning python reptile learning framework scrapy entry documents

 

In the words do not recommend you use python + pip installation, recommended Anaconda installation , why? Because if you choose the former, the process of filling the pit may make you despair, maybe you will hit the keyboard, endocrine disorders, it is strongly recommended to use Anaconda!

win7 (64 Wei)
Anaconda3-5.0.1-Windows-x86_64 (click to download)

First, install Anaconda

Then here is a brief download, Download anaconda is: https: //www.anaconda.com/download/

If you can not open official website, the venue here: Download Anaconda

 

Python random function
random number may be used in the field of mathematics, gaming, security, and the like, are often embedded in the algorithm to improve the efficiency and improve the safety of the procedure.

Python common random number function comprising:

Function Description
choice (seq) a randomly selected element from the element of the sequence, such random.choice (range (10)), from 0 to 9, a randomly selected integer.
randrange ([start,] stop [ , step]), obtained from the specified range of the specified base set increments a random number, the base default value. 1
Random () next generates a random real number in [0 ) within the range.
seed ([x]) to change the random number generator seed seed. If you do not understand the principle, you do not have to go to special set seed, Python will help you choose the seed.
shuffle (lst) of all elements of a sequence of random ordering of
the random number to generate a real uniform (x, y), it is within [x, y] range.
Mathematical Constants Python
Python trigonometric
Python string formatting
python string built-in functions ------ Note: Most use forms such as a string of individual process parameters are put max min string.

The encoding method is very rich can find a space to replace the interception of sensitive judgment .... length supplement to the judgment contains a number of letters capitalized, etc. Find ....
For example: string.title ()   returns the "title" of the string, that is all words are in uppercase began rest of the letters are lowercase (see istitle ())

 

Python list of functions & methods

The maximum length of relatively small format conversion statistics push to remove deleted sort descending  

 

Guess you like

Origin www.cnblogs.com/stillstep/p/11089633.html