根据身高排排站!已知 4 个人的身高分别为 160,172,183,178,要求按照身高由高到低站队排列,下列代码正确的是()
(A)x = [165,172,183,178] x.sort() print(x)
(B)x = (165,172,183,178) x.sort(reverse = True) print(x)
(C)x = [165,172,183,178] y = sorted(x) print(y)
(D)x = (165,172,183,178) y = sorted(x,reverse = True) print(y)
参考答案
继续答题:下一题