# if else
a =1
b =2print(a == b)print(a != b)print(a < b)print(a <= b)print(a > b)print(a >= b)# If retract
a =33
b =200if b > a:print("b 大于 a")
a =33
b =33if b > a:print("b 大于 a")elif a == b:print("a 等于 b")else:print("a 小于 b")"""
and && 全部符合
or || 符合其中之一
"""# nest
x =5if x >6:print("1")if x >3:print("2")else:print("3")else:pass# pass blank# while
i =1while i <6:print(i)if i ==2:
i +=1continueif i ==3:break
i +=1# for circulation
fruits =["apple","banana","cherry"]for x in fruits:print(x)for x in"banana":print(x)# range()for x inrange(6):# 0 - 5print(x)
adj =["red","big","tasty"]
fruits =["apple","banana","cherry"]for x in adj:for y in fruits:print(x, y)