📜  如何在python代码示例中使用三元运算符

📅  最后修改于: 2022-03-11 14:47:06.806000             🧑  作者: Mango

代码示例2
condition = True
print("This condition is true!") if condition else print("This condition is false!")