代码示例:(标识:python_if_elif)
python_if_elif.py
a = 66
b = 66
if b > a:
  print("b is greater than a")
elif a == b:
  print("a and b are equal")
运行结果: