python code block

### block of code: begin with a colon, a scoped indentation

Scope: The scope of action

if 5 == 6:
print(111)
print(222)

Block Precautions:

"" "Either all a tab indentation, or all four spaces, you can not mix." ""
"" "
IF 5 == 5:
Print (1)
Print (2) # IndentationError

"""

As long as conditions are met, all the content block is executed;

if 5 == 6:
print(3)
print(4)
print(5)

php js ...

if(5 == 5){

                                                 # print(4)

}

Guess you like

Origin www.cnblogs.com/CrownYP/p/11318401.html