This is the content of the December plan, beginning in January 2018 ~If there is any mistake, please ask for it ~Formatting this has been mentioned in print a little bit, and the truth is very similar to the C language.% of the
First of all, let's say for what is the use of it, the official explanation is: traverse; this thing is a bit of a mouthful, in fact for is used to put an element in the contents of the collection of all read all over, how to read? Start reading
Data typeThe length of the int standardFloatLong integer, infinitely longA = 2**31 2 times 31 SquareType to view the data types of the dataBoolean: True or False 1 or 0When the file is operatingWith as Open fileReadLines Read Multiple linesThe Strip
Try it after installing eclipse.Created a Pydev projectPackage ModuleWrite the simplest commands in test.pyPrint "HelloWorld"Error-syntaxerror:non-ascii character ' \xe5 'It means that the second line of my file is an error. Due to self-generated
Uninstalling Python2 is not recommended and may cause other software in the system to become unusable1. Downloadwget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3.6.0/PYTHON-3.6.0A1.TAR.XZ2. UnzipTar xvf python-3.6.0a1.tar.xz3. Compiling the installation
Read Catalogue
Theoretical knowledge
Operating System Background knowledge
What is a process
Process scheduling
concurrency and parallelism of processes
Synchronous \ asynchronous \ Blocking \ non-blocking
Reflection # operates on the members of an object in the form of a string (get/Find/Add/delete).Built-in functions for operations:1. Get GetAttr (object, name)# to get the contents of name in ObjectclassFoo:def __init__(self, Name, age):
One. Open Closure principle1. Open for expansionAny program, it is not possible at the beginning of the design has been thinking of all the features and future do not make any updates and changes. So we have to allow code extensions, add new
Open Closure principle1. Open for expansionWhy open to extensions?We say that no one program can have all the features in mind at the beginning of the design and will not make any updates or changes in the future. So we have to allow code extensions,
1 encodingWhen the Python interpreter loads the code in the. py file, the content is Ascill encoded by default, so there is an error in Chinese, so you need to tell the Python interpreter what code to use to execute the source code. )ASCII code,
1. Can the process be opened indefinitely?The process cannot be opened indefinitely, the CPU has 16 cores, and the delegate can handle 16 tasks at the same time, if there are 160 processes, each processProcessing 160 processes with a processor that
Singleton mode 1. What are single cases?Make sure that there is only one instance of a class, and instantiate it yourself and provide this instance to the entire system, which is called a singleton class, and the singleton pattern is an
Sesame HTTP: 1.9.3-Scrapyd-Client installation,
When deploying Scrapy code to remote Scrapyd, the first step is to package the Code as an EGG file, and then upload the EGG file to the remote host. This process can be implemented by a program, but
Learn Python from scratch-Data Type string, python-Data Type
I,PythonData Type in
· Integer, for example, 1-100
· Long integer, which is a relatively large integer. Python 2 contains long integers; Python 3 does not
· Floating point numbers such as 1
Python first,
Python is called a programming language.Communication tools between people and computers, among many programming languages,Python seems to be the closest to the natural language and most friendly to other languages.Although the glue
K-Nearest Neighbor Algorithm (K-nearest Neighbor), k-NearestI. Overview
The k-nn algorithm uses the distance measurement method between different feature values for classification.
1. Working principle:
There is a sample data set, also known as a
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