最贊回答 / my藤上風(fēng)鈴
# Enter a code# coding:utf-8names = ['Alice', 'Bob', 'Candy', 'David', 'Ellena']scores = [89, 72, 88, 79, 99]templateNames = []templateScores = [89, 72, 88, 79, 99]scores.sort(reverse=True)print("降序排列后的成績:" + str(scores))index_Score = 0index_TemplateScore...
2021-01-27
最新回答 / weixin_慕數(shù)據(jù)3534771
python是從0開始,而不是人類正常數(shù)數(shù)也從0開始,正常應(yīng)該說:第一個,第二個。。。對嗎?
2021-01-26
最新回答 / qq_慕萊塢5194171
利用extend擴(kuò)充列表,針對兩個列表進(jìn)行擴(kuò)充.d = [2,1,4,3]l = [3,2]d.extend(l)d就會出來了
2021-01-22
最贊回答 / 龍之咆哮
A=[1, 2, 3]B=[5, 3, 2]C=[7, 3, 2]L=[A,B,C]for i in range(3):??? lon=L[i][0]??? wei=L[i][1]??? hig=L[i][2]??? S=lon*wei*2+wei*hig*2+hig*lon*2??? print(S)
2021-01-20