單項選擇題

在Python中,如何使用條件表達式(三元運算符)?()

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

微信掃碼免費搜題