【发布时间】:2021-08-12 17:44:14
【问题描述】:
PlayListRatings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
i=0
score=PlayListRatings[0]
while (i < len(PlayListRatings) and score<6):
score=PlayListRatings[i]
print(score)
i=i+1
编写一个while循环来显示存储在列表PlayListRatings中的专辑播放列表的Rating值。如果分数小于 6,则退出循环。 PlayListRatings 列表由以下给出:
PlayListRatings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
不打印任何东西
【问题讨论】: