<分区>
正在学习 Swift,想知道是否有更简洁的方式来编写这段代码?
var apple = 1
var orange = 1
var kiwi = 1
if (orange > apple) && (orange > kiwi) {
print("The orange is the best")
} else if (apple > orange) && (apple > kiwi) {
print("The apple is the best")
} else if (kiwi > apple) && (kiwi > orange) {
print("The kiwi is the best")
} else {
print("None of them are the best")
}