#方式一class a (): def __init__ (self, name): self.name = name print ("a CLASS&NBSP, ...) class b (): def __init__ (self, age): self.age = age print ("b class ... ") class sub (a, b): def __init__
Key points of study today (source: Liao Xuefeng official website)Python data types include:
Integer
Floating point number
String
Boolean value
Null value
Take a look at the difference between each data type:
Integer:
The chicken saidLinks: https://www.jianshu.com/p/ceb99aed4b2eSource: PinterestNames and attributes can be located in BeautifulSoup by name and attrs to find specific HTML code. Even more commendable, ATTRS supports regular expressions.Such as:class="
Mainly from: [Python use xlrd, XLWT operation Excel table detailed]To facilitate reading, I split the original two modules into two posts:[Python read Excel module: XLRD][Python writes Excel module: XLWT]XLRD Basic OperationThis process has several
1. Two ways to execute Python scripts1. Pyhon Interpreter python zhurui.py2, briefly describe the relationship between bits and bytes8 bits of one byte3. Brief description of the relationship between ASCII, Unicode, utf-‐8, GBK4. Please write
A collection is an unordered, non-repeating combination of data, and its main functions are as follows:
Go to the weight, turn a list into a set, and then automatically go heavy.
Relationship test, test the intersection of two sets of
Goal: The intention is to spend two or three weeks almost, less than one months to contact Python, Baidu can use the crawler what, do something personal to interest, and in the middle of the year to buy a "redis combat" inside is a python example. I
1.file---Default is output to (), if set to (), output to ()2.SEP---printing (), default = ()3.end---The end of each print, the default is ()4.flush---Immediately output the content to (), do not ()5.eval ()---have return (), mainly used for ()
One, Thread & processFor the operating system, a task is a process, such as open a browser is to start a browser process, open a notepad started a Notepad process, open two Notepad started the two Notepad process, open a word started a word process.
I. Installation of Beautiful Soup LibraryWin platform: "Run as Administrator" cmdExecute pip Install Beautifulsoup4Installation quiz: from BS4 import BeautifulSoupSoup=beautifulsoup (' data ', 'html.parser')Print (Soup.prettify ())Second, the basic
Python _ builtins _ complex class (13) ,__ builtins_complex
13. The 'compute' function is used to create a complex number of values for real + imag * j, or to convert a string or number to a complex number. If the first parameter is a string, you do
Python _ builtins _ copyright class (14 ),
14. 'copyright', copyright
Class _ Printer (builtins. object) | interactive prompt objects for printing the license text, a list of | contributors and the copyright notice.Interactive notification object
SVM: generates 100 random points, establishes a model, and finds out the hyperplane equations-Jaosn niu and svmjaosn.
import numpy as npimport pylab as pl from sklearn import svm# we create 40 separable points#np.random.seed(0) X =
Python note (1): installation + crawler environment configuration + packaging as an EXE file,
1,Install
Https://www.python.org/downloads/windows/Download the installer from the official website.
Windows x86 32-bit Operating System
Windows x86-64
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