I. What is a built-in functionA built-in function is a function that Python gives you, using directly. Up to Python version 3.6.2python provides a total of 68 built-in functions, which Python provides directly to us.Scope-dependentLocals () returns
#小整数对象池‘‘‘Small integer object is resident memory and will not be deleted from the RecycleIntegers are used extensively in programs, and Python uses a small integer pool of objects to optimize speed, avoiding the frequent application and destruction
Defining a class immediately triggers the execution of the class body code, resulting in a namespaceclass Oldboyschool: ' Oldboy ' def Choose_course (self): Print ('ischoosing course')Accessing the properties of a classPrint
First, page layout:1. Main Station layout2. Background Management layout:Position property: 1. Fixed: Always in one place2. Relative: no meaning alone3. Absolute: The first position, at the specified position, when the scroll wheel, not in the
1.python CommunityPython has a global community that provides more than 130,000 third-party libraries covering a wide range of applications, accessible through http://pypi.org/. PyPI (Python package index) is the index of Python packages, and
Object-oriented VS process-orientedProcess orientedThe core of process-oriented program design is process (pipeline thinking)Advantages:Greatly reduces the complexity of writing programsDisadvantages:A whole process (pipelining) can only solve one
Adorner essence: function, function is to add additional functions for other functionsAdorner principle:
Do not modify the source code of the modified function
Do not modify the calling method of a decorated function
Knowledge
1. Package:Defined:Split multiple values in parentheses, grouped togetherEssentially, a tuple is returned, but the parentheses are omitted# Package Narimoto Group! T = (2)3 in [+]: T4 out[100]: (1, 2, 3)1 A = 42 b = 53 tmp = a4 a = b5 b = tmp6 c9>
Article we'll look at the return statement in Python. First we need to understand the use
of the return statement, and then we know what the return statement is
used for , and what kind of knowledge is
behind the return statement . Without saying
In this article, we will look at
Python anonymous functions in Python functions, many people do not understand
what the anonymous function means , today this article will bring friends to understand what is anonymous function, No more nonsense.
Python class Propertiesis a function of the language itself, this article will explain through the example of what is
Python class letters,and how to use
Python access properties.
A. The Python class properties are:
1.__DICT__: Properties of the
Today in this article, we'll talk about the date and time in Python, and maybe how to get it in Python for a friend who just started learning Python's programming language.
python current timestamp,Let you know how to use
Python Gets the current
Presumably everyone has just begun to touch the language of Python, today this article will bring you to understand the Python language is often used in a statement pass statement. Presumably everyone is curious about what the
pass function in
This is about
How Python parameters are passedOf the article, mainly introduced the
python parametersVariable parameter definitions and their
python parameter passing method,Share to everyone for your reference. The specific analysis is as follows:
function is one of the core contents of Python programming. In this article, we mainly introduce the following
Python custom FunctionsThe concept and
python function return valueRelevant knowledge points.
Python custom FunctionsWhat is it? What it
For today's article, let's talk about the Python logical operators in the Python operator. I hope this article will help you with your reading.
logical operators: The Python language supports logical operators, with the following assumption that
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