python 三元运算

python 三元运算表达式如下:

a = "fa"
def bb():
  # 如果 a=fa,则返回Ture,否则返回False return True if a=='fa' else False c = bb() print(c)

  

原文地址:https://www.cnblogs.com/royfans/p/9952134.html