Used to store things#定义变量Name=' Feifei '#定义变量, stringAge=18.9#整型或者小数定义变量不需要加引号Print (name)Print (age)Name2= "What ' s your name"#里面有单引号外面就用双引号Name3= ' You look very handsome'#里面是双引号外面就用单引号Name4=""you look very handsome "#里面既有双引号又有单引号就用三引号标记#ctrl
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
OpenCV is an open source image processing library with a lot of content.Want to know a lot of other, please yourself Baidu ~Blog is recorded under the Mac. Install OPENCV. Then use Python to refer to the OpenCV library. Environment is:Python
1 Introduction to ModulesWhen you start using Python programming, you may have used iterators (iterators) and generators (generators), which you might not have realized at the time. In this blog post, we will learn what iterators and generators are.
First, the programming language:1. Compiled (the source code is converted into executable code according to the runtime's precompilation, the runtime does not need to be compiled, not portable) and interpreted (easy to transplant, slow)2. Static
Applies to all stacksBootStrapCSS, JSLearn Bootstrap rules1. Response type@media Title 2. Icons, fonts@font-face3. Basic useStyle has precedence enforced mode. no-radus{background-radius:0!inportant;}Apply to Background
In fact, you can think of lists and tuples as normal arrays. But this array can store different data types (objects)Differences in lists and tuples
List
Meta-group
Symbols to use
[]
()
When using Python, a pit of the Strip () command was found.
The previous understanding of strip (x) is to remove the "x" string that is contained at the beginning and end, if not included, without removing it.
Here's a pit: Python's handling of
Python strip () function introduction, the need for friends can refer to
Function prototypes
Declaration: S is a string, RM is a sequence of characters to be deleted
S.strip (RM) Remove the characters from the beginning and end of the s string
Describe
The uniform () method randomly generates the next real number, which is within the [x, Y] range.
Grammar
The following is the syntax for the uniform () method:
Import Randomrandom.uniform (x, y)
Note: uniform () is not directly accessible,
In the last week, I continued to learn Python online, and I was exposed to the CGI programming of Python, which is officially defined as follows:
CGI (Common Gateway Interface), a universal Gateway interface, is a program that runs on a server such
Finish a job and start a new study:There are limited by today's time All learned the following two modules, continue tomorrow!Time module, Random ModuleImport time1 #! Usr/bin/env python2 #-*-coding:utf-8-*-3 #Author Calmyan4 Importtime , DateTime5
I. I/O modelIo is the input/output in the computer, that is, input and Output. Because the program and runtime data resides in memory and is executed by the cpu, an ultra-fast compute core, where the data is exchanged, usually a disk, a network, and
Random module and pythonrandom Module
I. random common modules
1. random. random () randomly generates a decimal number
Print (random. random () # output 0.6060562117996784
2. random. randint (m, n) randomly generates an integer (including n) from
Principle and Analysis of day4 recursion, and day4 Recursion
Recursion
Recursion is a method that calls itself. During function execution, it repeatedly calls itself,The recursive scale is reduced every time. Generally, the program in the previous
Python development [module]: Pygal to draw a histogram, pythonpygalPygal
Pygal can be used to generate a Scalable Vector Graphics file. It is useful for charts that need to be displayed on different screens. It can be scaled automatically to adapt
Python review path-Day01, python path-day011. Number
2 is an integer example.A long integer is a larger integer.3.23 and 52.3E-4 are floating point numbers. E indicates the power of 10. Here, 52.3E-4 indicates 52.3*10-4.(-5 + 4j) and (2.3-4.4.7) are
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