设用列表来描述分数,scores = [88, 52, 96, 75, 97, 100]。以下选项中,哪些能够实现遍历列表里的分数,并在屏幕上打印输出(所有分数在一行打印,分数和分数之间用空格间隔)? 即,输出结果为:88 52 96 75 97 100
A: scores = [88, 52, 96, 75, 97, 100]
for score in scores: print(score, end=' ')
B: scores = [88, 52, 96, 75, 97, 100]
i = 0 while i < len(scores): print(scores[i], end = ' ') i += 1
C: scores = [88, 52, 96, 75, 97, 100]
for score in scores: print(score, end=', ')
D: scores = [88, 52, 96, 75, 97, 100]
i = 0 while i < len(scores): print(scores[i], end = ', ') i += 1
A: scores = [88, 52, 96, 75, 97, 100]
for score in scores: print(score, end=' ')
B: scores = [88, 52, 96, 75, 97, 100]
i = 0 while i < len(scores): print(scores[i], end = ' ') i += 1
C: scores = [88, 52, 96, 75, 97, 100]
for score in scores: print(score, end=', ')
D: scores = [88, 52, 96, 75, 97, 100]
i = 0 while i < len(scores): print(scores[i], end = ', ') i += 1
举一反三
- There are ______ students playing basketball in the room. A: score of B: scores of C: two scores D: two score of
- Two ____years ago he lived in America. A: scores B: score C: score of D: scores of
- 数组scores定义如下:int[] scores=new int[5]{65,71,90,68,80};则scores[1]=()
- There are ________students playing basketball in the room. A: score of B: scores of C: two score D: two score of
- 下面记录的是某班36人期末考试的数学成绩:97 100 95 96 100 8796 100 89 100 93 6999 89 100 81 88 91100 87 98 75 85 8984 92 86 100 100 6187 51 81 92 95 97这些成绩的中位数为() 。 A: 90 B: 91 C: 92 D: 93