单项选择题

在Python中,如何使用三元运算符?()

A.x if condition else y
B.condition ?x :y
C.if condition then x else y
D.condition ->x,y

微信扫码免费搜题