python中的三目运算: result = a if condition else b #当满足condition返回a否则返回b 三目运算可以使你的代码看起来简洁,且运算高效 转载于:https://www.cnblogs.com/zhibei/p/9718499.html