代码:
a = 1 b = 2 # if if a > b: print("a>b") # if else if a > b: print("a>b") else: print("a<b") # if elif else if a > b: print("a>b") elif a == b: print("a=b") else: print("a<b")
运行结果:
a<b a<b
原文地址:https://www.cnblogs.com/jumpkin1122/p/11503340.html
时间: 2024-11-13 09:33:47