最新回答 / my藤上风铃
# 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...
2020-10-25
最新回答 / 一馋小和尚
a = r'''"To be, or not to be":that is the question.Whether it\'s nobler in the mind to suffer.''''
2020-10-22
最赞回答 / 一地几毛
可以是可以,但是多此一举啊language = 'Phtyon'result = template.format (language)可以缩写成一句result = template.format ('Phtyon')你这个是多个变量要套进去才用得着这种形式
2020-10-19
最新回答 / qq_迷失在天堂里云_0
remove函数只能删除首个满足条件的数,不如换种方式
c=[2,5,2,3,3,4,8,'a','b','c','d',1.1] c2=[] for t in c: if isinstance(t,float) or isinstance(t,int): c2.append(t) print(c2)
2020-10-18
最新回答 / 慕无忌7227368
# Enter a coded = {'Alice': [50, 61, 66], 'Bob': [80, 61, 66], 'Candy': [88, 75, 90]}for key in d.keys(): for score in d[key]: print(key, score)
2020-10-18