__call__ in Python, the function is actually an object:>>> f = abs>>> f.__name__ ' abs ' >>> f (-123) 123 because F can be called, so, F is called a callable object. All functions are callable objects. An instance of a class can also become a
1.Python module.Python a. py suffix file, called a module. A python module can contain variables, functions, classes, and variables and functions that can be defined in a class.2.Python module Import.(1) All Python module Import mode: From Module
Online to see the great god to Python crawler crawling to very much useful information, think very powerful. Suddenly want to learn Python crawler, although he did not learn python. But on the internet to look for some information to see the climb
1, def __add__ (self,other): C1+C2 Two instances of the addition operation is the execution of __add__ () Method 2, __str__ (self):p rint An instance, the implementation of __STR__ () this built-in method Eg:class Vector (object): def __init__
SYS.ARGV command line argument list, the first element is the path of the program itselfSys.exit (n) exit program, Exit normally (0)Sys.version get version information for Python interpreterSys.maxint the largest int valueSys.path returns the search
Function-Type programming1. Simplify the code,2, easy to call, easy to modify3. Call parameters, shape parameters, and positional parameters. Key parameters, position parameters can only be sent after the key parameters4. Default parameters5.
Programming paradigm
Programming is a programmer with a specific syntax + data structure + algorithm composed of code to tell the computer how to perform the task of the process, a program is a programmer in order to get a task result and a set of
Stability and significance of sorting algorithm
Bubble sort
Complexity and stability
Select sort
Insert Sort
Hill sort
Quick Sort
Comparison of efficiency of common sorting algorithms
Stability and significance of
Recently, just contact Python, find a little task to practice practiced hand, I hope that in practice, constantly exercise their ability to solve problems. This little reptile came from a course in the web, and I am here to record the problems and
I. Creating a Project
Command: Django-admin startproject MySite
mysite
├── manage.py
└── mysite
├── __init__.py
├── settings.py
├── urls.py
└── wsgi.py1.manage.py command-line tools that interact with Django, such as building database table
The Python language is now relatively fire and has not been exposed to the Python language during undergraduate studies, and is now going to learn from scratch. My Computer system is a Windows system.
Learning the Python language requires that you
Directory
Recursive algorithm parsing
Bubble Sort Resolution
Adorner parsing
I. Recursion
1. Definition of recursion
Recursion (recursion), which is also recursive, in mathematics and computer science, refers to the method of using
The experimental data needs to be drawn out recently, and as a result of experiments using Python, matplotlib is naturally used to draw.
The following code can be used as the template code for the drawing, with detailed comments in the code that
I've always wanted to learn python, but every time I learned to learn from the basics I felt bored. Learning a reptile today, but also to learn the purpose of python, but in the learning process encountered a lot of difficulties, but fortunately
1. moduleImport module is the essence of the imported module code, from the top to the next, to find the order of the module is, first find the current directory, and then to the environment variables to find;Modules are divided into standard
Notes for common Jupyter shortcuts and methods, and notes for jupyter shortcuts
Two different cells have an upper-lower relationship, which is not completely independent. We can see that the following res references the above
Shortcut
Python simple thread and collaborative learning experience (SHARE), python learning experience
The support for threads in python is indeed insufficient. However, it is said that python has a complete Asynchronous Network framework module. I hope I
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