Download the Python 3.x installation packageThe default Linux installation package can only be a source installation:>> wget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3.6.1/PYTHON-3.6.1.TAR.XZDue to the end of XZ file, you can use the following command to
Meta characters. ^ $ * + ? {} [] | () \. Match any one of the symbols except for the replacement number Ret=re.findall ( " Lee. ", " Li Jie, Li Gang, Wang Chao, Zhan Shan, buddy " ) print " li Jie ", " li Gang ", " Li Lian "]
First, the conceptual process: the process of executing a heap of code without completing a task, the process is a task, the real process is CPU parallel: multiple CPUs concurrently running concurrency: A single CPU time-sharing operation, using a
"Adorner"Encapsulates methods and functions so that they can enhance the functionality of other functions.#coding: Utf8def mydecorator (function): def _mydecorator (*args,**kw): #在调用实际函数之前的准备工作 print ' Start ' res = function (
In the Loop object and function object, we understand the function of the circulator (iterator). A circulator is a container for objects that contain multiple objects. By invoking the next () method of the Circulator (__next__ () method, in Python 3.
1,xlrdXLRD is used to read and write data from Excel, but I usually use it for reading only, and there are some problems with the writing operation. It is easy to read with XLRD, and the process is like manually working with Excel, open the workbook
Accidentally encountered a big God organized python learning mind map, feel good for beginners to clear learning ideas, thank him for sharing.For details see: https://woaielf.github.io/2017/06/13/python3-all/14 Basic knowledge of mind mappingData
One: Process poolA process sequence is maintained internally by the process pool, and when used, a process is fetched to the process pool,If there are no incoming processes available in the process pool sequence, the program waits until a process is
(1) Python GUI:Python writing a simple interface is still possible. I am using TK.Simply put, just a few words can show the interface:Import tkinterroot = tkinter.tk () root.mainloop ()When adding a library, many people say the form of import
1. Creation of functionsdef # definition Print ('hellow') # Execution Code of the function Retrun 1 # return value fun () # Execute function2. Parameters of the functionCommon parameters: To enter parameters in
To limit the scope of the score, you can set the score by one method, and set_score() then get the score by one, get_score() so that in the set_score() method, you can check the parameters:1>>>classStudent (object):2 defGet_score (self):3 returnSelf.
I. The role of exception handlingThe use of Python exception handling is to handle thrown exceptions so that the code behind the program runs correctly (debug code, or program run that does not affect the overall run, an uncontrolled exception
1. Shallow copyCopy.copy ()A shallow copy is a copy that copies only the outermost layer (the copy in this case regenerates a memory address, that is, only the outermost address is regenerated)ImportCopyli=[23,45,['WEW', 35,[33,00]]]li1=copy.copy
1. Time.The time Format function allows you to get the current time year, month, date, hour, minute, and second.2. Calendar.Date-related information can be obtained through the number of calendar letter.Related code:Python 3.6.1 (V3.6.1:69C0DB5, Mar,
#try ... finally whether or not an exception is performed finally#例如实现不管是否异常都输出一串字符串‘‘‘TryPrint IFinallyPrint "Regardless of whether it is abnormal, I must output"TryI=7Print IFinallyPrint "Regardless of whether it is abnormal, I must
First, the author introducesWu Haidong: My blog:http://www.cnblogs.com/whd-672701Ii. Description of the procedure1. Run the program output first level menu2. Select a Level menu item, output level two menu, output level three menu similarly3. Menu
message boxImportImport Tkinter Import # This is the message box, the key to the dialog boxPrompt message boxTkinter.messagebox.showinfo (' hint ',' life is short ')Message Warning BoxTkinter.messagebox.showwarning (' warning ',' rain tomorrow
Object-oriented:
Concept: Class, instantiation, object, instance
Property:
Public properties: Defined in class
Member properties: defined in method
Private properties: Restrict external access by using the __ property definition in a method
Algorithm basics, common algorithms summary, and algorithm basics Summary
Some of the algorithms involved are unclear. Most of them are recently used in algorithm diagrams, which are usually used, including
Binary Search, sorting, fast sorting, and
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