First of all, let's learn something about python The most basic entry
Definition ： When we write code, we get our own names, such as project names , Package name , Module names, these ;
standard ：1. Numbers / Letter / Underline composition , Cannot start with a number
2. You should know the meaning of a name
3. Can't name with a keyword , such as int/if/while etc.
① Single-line comments ctrl+/
② Multiline comment Three single quotes ''' ''', Three double quotes """ """
a = 1 # The assignment operation
print(a)# Output function
a It's a variable , Naming rules are the same as identifiers
4. data type
① Numbers ： integer 、 floating-point
integer ： keyword int give an example ： a = 1
floating-point ： keyword float give an example b = 10.0
② Boolean value bool boolean
True Flase title case , By judging true or false
③ character string ：str
Definition ： Become a single quotation mark 、 Double quotes 、 Three orders 、 Double quotes are strings
give an example ：a='1' b="2" c="""3""" d='''4.35'''
Can pass python Built in functions type Judgment type
Take the string length ：
s = ' hello!'
String values ：
# String values ： character string [ Index value ]
# Indexes ： from 0 Start marker
# take ！ Number
s = ' hello!'
To be continued , Continue coding tomorrow ~~~
- [ Python Introductory tutorial ] Python Basic grammar
Python My grammar is very concise , So with Python The program is readable . Easy to understand . This chapter will introduce Python The basic grammar and concepts of . Python file type 1. Source code .Python The extension of the source code to py ending , It can be shipped directly ...
- python Basic grammar 、 data structure 、 Character encoding 、 Document processing Exercises
Examination scope '''1.python introduction : Programming language related concepts 2.python Basic grammar : Variable . Operator . Process control 3. data structure : Numbers . character string . list . Tuples . Dictionaries . aggregate 4. Character encoding 5. Document processing ''' Examination content 1. Jane ...
- 【 turn 】Python Basic grammar
[ turn ]Python Basic grammar Learn a programming language , It's usually learning the following parts of the language : Basic grammar : Such as , Variable declaration and call . Basic output statement . Code block Syntax . Notes, etc. : data type : It's usually for Numbers . character string . Boolean value . Array ...
- python The most powerful of all （2）——python Basic grammar
Background introduction : Because I have been doing java Development , Also from the txt Start writing hello,world, Use javac Command compilation , All the way to use myeclipse, I know the truth and bitterness ( Please allow me to dry my eyes ), So for pytho ...
- Python Basic grammar ( 3、 ... and )
Python Basic grammar ( 3、 ... and ) -------------------------------------------- Pick up Python Basic grammar ( Two )------------------------- ...
- Python Basic grammar ( Four )
Python Basic grammar ( Four ) -------------------------------------------- Pick up Python Basic grammar ( 3、 ... and )------------------------- ...
- Python Basic grammar ( Two )
Python Basic grammar ( Two ) -------------------------------------------- Pick up Python Basic grammar ( One ) ------------------------ ...
- Python Basic grammar
Python Basic grammar Python Language and Perl,C and Java There are many similarities between languages . however , There are also some differences . first Python Program E:\Python>python Python 3.3.5 ...
- My myna learns Python( Four )： understand Python Basic grammar ( Next )
Let's go on with the grammar in the first part , Keep learning Python Basic grammar . The data type is basically Python The data types in are divided into the following categories :Number( Numbers ),String( character string ).List( list ).Dictionary( ...
- Python Basic grammar （ 3、 ... and ）
Python Basic grammar ( 3、 ... and ) 1. Numerical data structure 1.1 The main points of It was mentioned in the previous blog , Numerical data structure is just introduced here . Here are some knowledge points to know . int.float.complex.bool ...
- Redis And AOF Backup
redis There are 2 Ways of planting :1.RDB:2.AOF: Now I'm going to talk about ha AOF Backup of 1. find redis.config The configuration file , Most of them download and redis-service Same as catalog : 2. open redie ...
- HDU4738 tarjan Cut the edge | Cut the edge 、 Cut point template
subject :http://acm.hdu.edu.cn/showproblem.php?pid=4738 Pit point : Dealing with double edges The graph may not be connected , To export 0 If the result is 0, Then output 1, Because at least one person has to be sent #inc ...
- SQL Server Copy error article collection
SQL Server Copy error article collection In order to facilitate you in the process of database replication error better solve the problem I collected SQL Server Related to copy error resolution article The process could not ex ...
- 2 、Linux Basic commands -ls-pwd-cd-date-hwclock
Linux Basic commands : 1.ls- View the documents in the directory grammar : ls Catalog notes : . Current directory .. Superior directory Such as :ls /etc/ Related parameters : -l Show details ls /etc/ -l -a Show hidden ...
- lintcode：Singleton Single case
subject : Single case Singleton is one of the most common design patterns . For any moment , If a class only exists and at most one concrete instance exists , So we call this design pattern singleton . for example , about class Mouse ( It's not animal mouse Oh ), We ...
- Thousands of downloads a month APP The source code to share
stay 360 It's been online for a month , More than a thousand downloads . Share the code here , For you to learn ! It also includes teaching you how to access advertising , Make a little money and spend , If you like, please help me , Don't spray when God sees it , Primary school monk just learned Android It didn't take long . Let's start with this app ...
- WebService Pass on XML data C#DataSet operation XML analysis WebService Back to XML data
Webservice The data passed can only be serialized data , Typical is xml data . /// <summary> /// By username and password Return the downlink data /// & ...
- How to modify Qt The text of the standard dialog ( for example , Change English to Chinese )
This article refers to qtcn The forum is made up of , Because words and pictures are organized by myself , So it's still original . http://www.qtcn.org/bbs/read-htm-tid-30650.html http://blog. ...
Warmup(2) The program is very small , Read and write directly through int 80h System call complete . The stack overflow vulnerability is obvious , Can overflow 20 byte . Because of the protection of sandbox, it can only read /home/warmup/flag file . So the thinking is very clear , open ...
The first part ,ES7 Introduction in async-await Original address http://www.cnblogs.com/wangfupeng1988/p/6532734.html Without the permission of the author , Shall not be reproduced ~ Described above ...