Character, String type#print (1/2)# print (1//2) #地板除, is automatic rounding, not rounding, directly erase the decimal#if判断时候, both true and false, that is, true and false.Non-0 is true, non-null is TrueName=input ("Please enter your
String manipulationThe string can be evaluated by subscript, but since the string is immutable, it cannot be modified by subscript (in the form of a string [subscript]), the subscript starts at 0, and the maximum subscript value is the string length
Introduction and Features
python language was developed by Guido van Rossum in 1989 and eventually published in early 1991.
python is an object-oriented, interpreted computer language, the syntax is concise and clear, known as
First: What is an exceptionAn exception is an event that occurs during program execution and affects the normal execution of the program.Different exceptions in Python can be identified in different types (Python unifies classes and types, types as
Classes and instances1, Class: There are properties there are methods that are classes. Here is the Student class:class student (object): def __init__ ( Self, name, score): self.name = name self.score = score def print_ Score
Regular expressionsI. Recognition of regular expressionsWhat is a regular expression?Regular expression is a separate voice, not only python, many languages can call it, it's self-systemWhat's the use of regular expressions?First, let's take a look
When installing the Python environment, you will also need to install "Setuptools and Pip", but there are several issues when installing Setuptools, as follows:Setuptools and Pip are as
First, the introduction of the event.Each thread is a self-running individual, and the running state of each thread is unpredictable.If there are many threads in a program, other threads of the program need to determine the running state of a thread
This article mainly introduces the Python operator overload and the example code of the relevant information, the need for friends can refer to the following
Python operator overloading
The Python language provides operator overloading, which
SMTP is the protocol that sends messages, and Python's built-in support for SMTP can send plain text messages, HTML messages, and messages with attachments.
Python supports SMTP support with Smtplib and email two modules, email is responsible for
Len if a class behaves like a list, you have to use the Len () function to get the number of elements. For the Len () function to work properly, the class must provide a special method Len (), which returns the number of elements.
For example, we
Python decorator implements several types of verification functions, such as python
A new requirement comes recently. We need to add several resource permissions to the system. Minimize code changes and program complexity. Therefore, it is more
Win10 + Python + MXNet + VS2015 configuration, win10mxnet
The project needs to use MTCNN to detect, align, and cut faces. MXNet is used as the framework, but various frameworks in my Ubuntu are in disorder, if you don't want to worry about it, you
Getting started with Python: three tips on Data Structure
This is the first article on Python. It mainly introduces three tips on data structure.
Sort:
Use the sorted function to sort data.
The sorted function sorts the elements in each list in the
Python 11th days, dnf 11th sets of sky Sets
Start learning the second module:
Decorator:
Description:
Decorator principles:
1. the source code of the decorated function cannot be modified.
2. The caller cannot modify the decoration
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