Conditional statement: Used to determine whether a condition is met, compliance is executed, non-conforming does not perform the operation defined by the condition.One-step decision: Used to understand this will not be used. The If 1==1:if
First, Python introduction: Python is a high-level programming language for interpreting, object-oriented, and dynamic data types. Python was invented by Guido van Rossum at the end of 1989, and the first public release was released in
Python arithmetic operatorsThe following hypothetical variables: a=10,b=20:
operator
Description
Example
+
Add-Two objects added
A + B output result 30
-
Minus-get negative
Webdriver supports Firefox (firefoxdriver),IE (internetexplorerdriver), Opera (operadriver) and Chrome (chromedriver) because of the domestic ban http://code.google.com and http://www.seleniumhq.org/download/ the software download, you can go to
First, Brief introductionRegular expressions are a small, highly specialized programming language that is not unique to Python and is a fundamental and important part of many programming languages. In Python, this is done primarily through the RE
Tag: Get message cannot scribe address Pytho func also has subPython WebSocket Real-time message pushHere I record how to implement the server-side real-time communication with the client:The implementation steps are as follows:1. Get Goeasy
First, the module1. What is a module?A module is a file that contains the Python definition and declaration, and the filename is the suffix of the module name plus the. Py.2 Why do I use modules?If you quit the Python interpreter and then re-enter,
1 Definition of module and Package 1.1 moduleWhat is a moduleThe module is a file that contains the Python definition and declaration, and the filename is the suffix of the module name plus the. Py.Why use a moduleAfter exiting the Python
List.append () "Action: Add a new element to the list, add" "English:append=> Add" "Description: Return value: None, action in list"In []: li=[]# Create a new listin [the]: li.append (1)# Add a number element in []: Li.append ([2]) # Add a list
1. Opening and closing of files opening filesIn Python, using the Open function, you can open a file that already exists, or create a new fileOpen (file name, access mode)Examples are as follows:f = open ('test.txt'w')Description
This article mainly introduces Python under the powerful renaming method of the OS module renames detailed information, the need for friends can refer to the following
Python's powerful renaming method under OS module renames detailed
There are a
This article mainly for you to share is in Windows under the installation of Python2 Python3 after the PIP error resolution, very practical, the need for small partners can refer to the next
Before you install Python at the same time, simply change
The Select module in Python focuses on I/O multiplexing, provides a select poll Epoll three methods (where the latter two are available in Linux, Windows supports select only), and also provides the Kqueue method (FreeBSD system)
Select method
The
Here is an overview of the tools I used to do debugging or analysis. If you know there is a better tool, please leave a comment in the comments, you can not complete the introduction.
Log
Yes, that's the log. It is not too important to emphasize
Day1 Job 1: Write the login interface and day1 job writing Interface
Job 1: Compile the login interface
1. Enter the user name and password
2. The welcome information is displayed after the authentication is successful.
3. Lock after three wrong
Python day 1, python get the first day of this week
The first line of var1.py code:
1 #! Usr/bin/env python2 #-*-coding: UTF-8-*-3 # Author calmyan4 print ('Hello World ') 5 name = 'yan' 6 name2 = name7 print ('My name: ', name, name2) 8 name =
Python basics _ character encoding and binary, user interaction, python Interaction
Character encoding
ASCII-supports 255 characters
Gb2312 -- supports more than seven thousand Chinese Characters
Gbk-supports over 20 thousand Chinese Characters
Gb180
Python object-oriented 5 basics, python object-oriented
Python object-oriented 5 Basics
Today, the remaining object-oriented knowledge will be learned mainly in the following aspects: 1. Context Management Protocol; 2. Adding a class modifier; 3.
Day5 Bubble sorting, day5 bubble
Bubble Sorting: It is a basic algorithm to sort data. The sorting principle is to compare the previous one with the next one. If the previous value is large, it is exchanged. Otherwise, it is not exchanged,
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