代码示例:(标识:python_if_else_short_1)
python_if_else_short_1.py
a = 200
b = 66
print("A") if a > b else print("B")
运行结果: