一、if else语句
if 条件表达式:
else:
a = 3 b = 4 if a >= b: print("a >= b") else: print("a < b")
二、if elif else
a = 6 b = 6 if a > b: print("a > b") elif a < b: print("a < b") else: print("a = b")
一、if else语句
if 条件表达式:
else:
a = 3 b = 4 if a >= b: print("a >= b") else: print("a < b")
二、if elif else
a = 6 b = 6 if a > b: print("a > b") elif a < b: print("a < b") else: print("a = b")