Python Problem Correction 1

1.Guido van Rossum officially released version of Python is Year: 1991

December, 1989 Implementation started

1990 Internal releases at CWI

February 20, 1991 0.9.0 (released to alt.sources)

February, 1991 0.9.1

Indent 2.Python language of unity as long as you can, not necessarily a four spaces (although this is the practice). Python indentation in the program and enforce the use of uniform length.

3.IPO:Input Process Output

4.Python legal name of the first character can not be a number.

5.Python reserved words:

python reserved word instructions
and arithmetic expressions for the logical operation
as for the type of conversion
assert asserted, the variable is determined whether the value of the conditional expression is true or
break interrupt loop execution
class is used to define the class
continue to continue to the next cycle
def function or method used to define
del variable or delete a sequence of values
used and if else conditional statement elif binding
else conditional statement conditional statements, in combination with if, elif. May also be used for recycling and abnormal
except includes an operation code capture anomalies, and try, finally used in combination
exec statement for executing the python
for loop
after finally statement for abnormality, an abnormality occurs, the code block is always executed finally contains . And try, except in combination with
from import module for use in conjunction with the Import
Global global variable defined
if conditional statement, used in conjunction with the else, elif
Import module for importing, from the combination
in the presence of the sequence is determined whether the variable
is determined variables It is an instance of a class
lambda anonymous function definitions
not expressions for calculation logic nOT operation
or calculation expressions for the logical operator or a
placeholder pass empty class, a function, a method of
print print statements
raise an exception is thrown operations
return from the function to return the results
try may contain abnormal statement, with the except, finally used in combination
while loop
with Python simplified statement
yield a return value from the function for sequentially

----------------
Disclaimer: This article is the original article CSDN bloggers "XIAOHENGPENG", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/XIAOHENGPENG/article/details/80294730

Guess you like

Origin www.cnblogs.com/sunflowers-lanqijiu/p/11586468.html