题解列表

筛选

1169: 绝对值排序(sort)

摘要:解题思路:    核心:l.sort(key=abs, reverse=True)注意事项:    去掉绝对值最大的数参考代码:while True:     l = [int(x) for x i……

python语言训练-求PI*

摘要:解题思路:    注意绝对值小于10^-6是某一项的,但是就是正负符号参考代码:pi = 1.0 i = 3.0 c = 1 while True:     if 1 / i < 0.0000……

津津的储蓄计划(python版)

摘要:解题思路:注意事项:参考代码:def progress(x,y):    if x<y:        return -1    else:        less=x-y        return……

淘淘摘苹果

摘要:解题思路:注意事项:参考代码:apple=list(map(int,input().split()))high=eval(input())high_all=high+30n=0for i in ran……