题解列表

筛选

计算并联电阻的阻值

摘要:解题思路:注意事项:参考代码:list = list(map(float, input().split()))c = list[0]*list[1]/(list[0]+list[1])print("%……

1204: 大小写转换

摘要:核心:    name = 'Hello World'    print(name.lower())  # 大写转小写    print(name.upper())  # 小写转大写 ……

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……