I understand it as follows: Data type:
A conditional statement is both a string:
If condition judgment: name= "Product Data"
code block n1= ' data type '
Elif:n2= "" "Database" "" (Four Methods of representation)
code block n3= ' ' parameter '
Print (' ... ') addition:
Conditional statements Simple multi-layered nesting:
If condition judgment: data:
If condition judge: A1=39/8 #得到全值 a1=39%8 #得到余数 a1=39//8 #得到计算所得到的商数
The code block "subtraction" algorithm is the same as the arithmetic algorithm
Else
code block
Else
code block
Print (' ... ')
Inp==input (' Please enter the Membership level ')
If inp== "Premium Member"
Print (' corresponding content ')
Elif inp== "Platinum Member"
Print (' corresponding content ')
Elif inp== "Platinum Member"
Print (' corresponding content ')
Else
Print (' Nothing ')
Print (' corresponding content ')
Python (conditional statements and basic data types)