單項選擇題

在Python中,如何使用三元運(yùn)算符?()

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

微信掃碼免費(fèi)搜題