三元運算:name = "GOGOGO" if True else "HAHA"等同於:if True: name = "GOGOGO" else: name = "HAHA" print (name)執行結果: GOGOGO lambda: f2(a1,a2): return a1 +a2 t = f2(1,2) lambda無法使用if,else等條件判斷