I. Learning content and Induction1 " "2 Form Components3 -Validation of user requests4 -Form5 -Ajax6 -Generate HTML code7 8 A. Create a class9 B. Creating a corresponding field in a class (including regular expressions)Ten c. GET One -obj = Fr ()
This is a personal study note, non-tutorial, the content will be a bit confusing
Minimalist Tutorials
Data Type
We can use the type() function class to get the type of the object, the built-in data types in Python3 include:
Python's multiprocessing module is used to create multiple processes, and the following summarizes the usage records for multiprocessing.
Multiprocessing creating a multi-process comparison between Windows and Linux systemsFork ()
import ospid =
1. What is a function?There are two variables x and y, and when x takes each specific value in its range of changes, the corresponding unique y corresponds to it, and Y is the function of X. Remember y = f (x), where x is the argument and y is the
Https://www.cnblogs.com/technologylife/p/6242115.htmlCentOS system is generally installed by default Python2.6.6 version, a lot of software needs more than 2.7, through the package management tool can not install the latest version, through the
Functional Requirements:Determine if the variable name is validVariable names can consist of letters, numbers, or underscores;Variable names can only start with letters or underscores;Input example: [email protected]Output Example: variable name is
A lot of people learn to use Python, most of them are all kinds of crawler script: have written the script to catch proxy native verification, have written the automatic mail-receiving script, as well as write a simple verification code recognition
Built-in data types:int float ComplexSTR list tupleDict SetUnderlying data type:int float ComplexSTR list tupleDictCollections module:Some extensions are made based on the underlying data type1, Orderddict: Ordered dictionary Python3.6 after
Several exception handling methods are built into Python.1 Try ExceptA = 10b = 0try: i = a/bexcept Exception, e: integer division or modulo by Zero# First executes the contents of the Try statement block, and if it performs normally, skip exc
1. Supplementary data types 1, 1 tuplesWhen there is only one element in the tuple and there is no comma, the data type is the same as the element inside the parentheses.TU1 = (' Laonanhai ') tu2 = (' Laonanhai ') print (TU1, type (TU1)) print (TU2,
ObjectiveSince a lot of computations are done locally, and the game is running in memory, there are many ways to use it.Jedi Survival game experience is very poor, not to say the game is poor, the contrary, the experience of the game is very good,
1. Create a CollectionCollections are created differently than the first two data structures.The collection is created by the set (Iterable) method, and the parameter iterable is an iterative object.Example code:S1 = set (' Learn every day ') #
The crawled Web page address is: https://movie.douban.com/top250When you open a webpage, you can see that TOP250 's movie is divided into 10 pages, each with 25 movies.Then to crawl all the movie information, you need to know the other 9 pages of
File operation steps: 1. There is a file, 2. Open the file, 3. Read and write the modified file, 4. Close the fileOne. one file: New or imported fileTwo. Open file: If it is the new file default and the py file in the same directory, if it is open
Linear table ApplicationsSolution to the problem of--josephus (Python version)Josephus problem Description: Suppose that there are n people sitting around a circle, now request from the K -person began to count off, the number of people reporting
The data's in-memory address is a reference to the data. If the two variables are the same reference, then the data corresponding to the two variables must be the same;if two variables correspond to the same data, the references are not necessarily
url = ' interface address 'r = Requests.get (URL) # send GET requestPrint (R.status_code) # Prints the status code, if redirected, returns the code after the redirectPrint (r.headers) # Prints the returned header (header)Print (r.text) # View the
1. TCP protocolReliable transmission, TCP packets do not have a length limit, theoretically can be infinitely long, but in order to ensure the efficiency of the network, usually the length of TCP packets will not exceed the length of IP packets, to
Here is a summary of several cases that will lead to coding problems, and explain one by one ...Case one: Chinese output is garbled?
# Python Version: 2.7.6
>>> string1 = "I love Fish C Studio"
>>> string1
' \xe6\x88\x91\xe7\x88\
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