课程中循环问题
names = ['Alice', 'Bob', 'Candy', 'David', 'Ellena'] scores = [45, 60, 75, 86, 49] index = 0 for name in names: score = scores[index] print('name = {}, score = {}'.format(name, score)) index = index + 1
其中,score后面的循环有点不太懂
names = ['Alice', 'Bob', 'Candy', 'David', 'Ellena'] scores = [45, 60, 75, 86, 49] index = 0 for name in names: score = scores[index] print('name = {}, score = {}'.format(name, score)) index = index + 1
其中,score后面的循环有点不太懂
2021-03-25
举报