题解列表

筛选

使用max函数

摘要:解题思路:注意事项:参考代码:l = input().split()  # 读取输入并分割成列表  t = []  # 创建一个空列表    # 使用列表推导式将 l 中的每个字符串转换为浮点数,并添……

python方法解决

摘要:解题思路:注意事项:参考代码:import mathl = input().split()s = 0if l[1] == 'y':    s = 5a = int(l[0])if a ……

含k个3的数的解

摘要:解题思路:注意事项:参考代码:m = int(input())k=int(input())if m%19==0:    m=str(m)    count=m.count('3')  ……

优质题解,回归真神的初始途径

摘要:解题思路:利用字典,统计每个字母出现的次数注意事项:参考代码:word=input()dic={}for le in word:    if le in dic:        dic[le]+=1 ……

优质题解,回归真神的初始途径

摘要:解题思路:利用列表[]的有序性和list函数的有序性,可以一一对应注意事项:参考代码:# 图书价格列表prices = [    28.9,  # 计算概论    32.7,  # 数据结构与算法  ……