a = 5 b = 6 if a > b: c = a else: c = b print(c)
mehods = dir(str) for method in mehods: if method.startswith("__"): continue print(method)
mehods = dir(str) for method in mehods: if not method.startswith("__"): print(method)
操作数1 if 条件 else 操作数2
a = 5 b = 6 c = a if a > b else b print(c)