First, the introduction of Python1. Application of PythonFounder of 1.python: Guido van RossumAreas of 2.python Applications: Cloud Computing (OpenStack), web development, AI, system operations, finance, graphical GUI, etc.3. History: Python2/python3
1. Installing the full-Text search package# 全文检索框架pip install django-haystack# 全文检索引擎pip install whoosh# 中文分词框架pip install jiebaHeystack Some of the configuration is fixed write good, need to pay attention to2. Configure full-Text indexing
1.
#Author is Lizhenlei#字典的特性:# dict is disordered.# key must be unique, so naturally go heavy#key: Value (key: Values)info = {' stu1101 ': "Tenglan Wu",' stu1102 ': "Longze Luola",' stu1103 ': "Xiaoze Maliya",}Print (info)Print (info[' stu1101 ')
Common String OperationsIf there are strings mystr = ‘hello world itcast and itcastcpp‘ , the following are common operationsfindDetects if STR is included in MyStr, or returns 1 if the index value is returned.mystr.find(str, start=0, end=len(mystr))
1. IntroductionWeak Type A variable can be assigned a value different from the original typex = 1x = "1" #不加分号, it is possible to assign a value of x to a string againWith or not, and or not/#除法的结果是浮点数, 9/3 = 3.0#结果是整数 10//3 = 3Null value is none
CentOS 6 is a relatively stable version of Linux server that has been running for many years in production environments in a number of enterprises. However, the original version of Python in CentOS 6 is still 2.6, and is typically developed using
Class definition:Encapsulates an abstract object with a class of attributes (class instance properties) and behaviors (class instance methods) into aCalled as an object with inherited characteristicsSelf Initialize Class attribute class instance
One, intro.1 What is data?x=10,10 is the data we want to store.2 Why data is divided into different typesData is used to represent States, and different States should be represented by different types of data.3 Data types
Digital
String
First, operating system introduction 1, manual operation--punch cardThe first computer was born in 1946--in the mid 1950s, computer work was still being done by hand. There is no concept of operating system at this time.The programmer loads the
"""Project name: Port probing scanWhiteVersion: 1.0Note: For example MySQL 3306 here, port to 80 can also"""#引入线程和socket的模块import threadingimport socketrouters=[] #用于保存探测结果lock = threading. Lock () #构造一把锁def main ():
Higher order functions1 of knowledge, the function itself can be assigned to the variable, that is: The variable can point to the functionKnowledge point 2, function name is also variableKnowledge point 3, function parameters can accept other
How Python Works
1. The completed py file, first translated into a bytecode file (hidden suffix pyc), and then use PVM (virtual machine) to automatically compile bytecode, and then explained to the hardware.
2. If you have formed a pyc file,
1. Find files using prefix and suffix matching for strings
Str.startwith ()
Star.endwith ()
2. Using Fnmatch
Fnmatch determine if a file name conforms to a specific pattern
Fnmatchchcase determines whether a file name
This article mainly introduces the Python code implementation of the Django framework, small series feel very good, and now share to everyone, but also for everyone to do a reference. Let's take a look at it with a little knitting.
First,
This article mainly introduces the Python PYQT multithreaded serial Code analysis, small series feel very good, and now share to everyone, but also for everyone to do a reference. Let's take a look at it with a little knitting.
This blog main record
This article mainly for you in detail the Python Basic Tutorial Project three of the Almighty XML, with a certain reference value, interested in small partners can refer to
The name of this project is not as good as XML called "omnipotent" is
JSON is a commonly used data exchange structure, which is widely used in network because of its characteristics of lightness, easy reading and writing. The following article mainly describes the Python JSON parsing related data, the need for friends
This article mainly introduces the Python dictionary (Dictionary) of the detailed operation method, the need for friends can refer to the following
A python dictionary is another mutable container model, and can store any type of object, such as
This article is mainly for you to share on the basis of Python text formatting, the method is very detailed, the need for friends can look
1.Python text formatting
In the version of Python 3.0, the input statement defaults to a string (even if the
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