A comparison of programming languagesShell (LINUX), PHP (mostly Web page), Java and Python (common language)Two ways to learn Python1. Learn Grammar First2. Then learn the module (most of the modules are written well, we just need to call it)Output
list, consisting of a series of elements arranged in a particular order. You can create a list of all the letters, numbers, 0~9, or names of all family members in the alphabet, or you can add anything to the list, where there is no relationship
function definitionThe function code block begins with a def keyword followed by the function identifier name and parentheses ().Any incoming parameters and arguments must be placed in the middle of the parentheses. Parentheses can be used to define
Module collections-collections.namedtuple means that the tuple is not clearIf it represents a coordinate, T = (up), it is unclear.If that's the case, point (X=1, y=2)from collections import namedtuplePoint = namedtuple('Point', ['x', 'y'])
1. The dictionary provides a mapping between Key-value and supports the following basic operations:x = d[k] Indexed by keyD[K] = x is assigned by keyDel D[k] Deletes an item by keyK in D checks if a key existsLen (d) Number of items in the
Functional programming is a very high degree of abstraction of the programming paradigm, the purely functional programming language functions are not variable, so any function, as long as the input is determined, the output is OK,This pure function
Multiprocessing of Python multi-process programming1,process
Cross-platform process creation module (multiprocessing) for cross-platform support: Windowx/linux
Create and startCreate format: p=process (target= function name)----def __init__
What is splash:Splash is a JavaScript rendering service. It is a lightweight browser that implements the HTTP API, and Splash is implemented in Python, using both twisted and QT. Twisted (QT) is used to enable the service to have asynchronous
100 RESTful API, 100 restfulapi
Navigate to this article:
RESTful
RESTful API design
Django-based implementation
Implementation Based on Django Rest Framework
1. RESTful
REST is independent of technology and represents a software
Sesame HTTP: Installation of pyspider and sesame httppyspider
Pyspider is a powerful web crawler framework compiled by binux, which has powerful WebUI, Script Editor, task monitor, Project Manager, and result processor. It also supports multiple
Sesame HTTP: Analysis of the Robots protocol and sesame Analysis of the robots Protocol
Use urllib'srobotparserModule. We can analyze the Robots protocol of the website. In this section, we will briefly understand the usage of this module.1. Robots
11. Network Programming: socket, server, client, and network programming socketSocket:
Socket, also known as "socket", usually sends a request to or responds to a network request through "socket.
Use socket in python for network connection
Make Python output more beautiful and Python output more beautiful
Print by default, the output is a line feed. If you want to implement a line feed, you need to add a line feed at the end of the variable.End = "":
Student_age = 18
Print
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