已知x =list(range(11))则运行下列代码x.sort(reverse=True)print(x)的结果为:
A. [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
B. [11,10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
C. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
D. [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11]
ls = ["cat", "dog", "tiger", 1024]for c in ls:print(c,end=",")已上代码的输出结果为:
A. cat,dog,tiger,1024,
B. cat dog tiger 1024
C. ["cat","dog","tiger",1024]
D. 0,1,2,3