题解列表
列表的循环输入,利用列表切片和求和
摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) a=a[1:] for i in a: xx=a……
分类讨论以及循环输入
摘要:解题思路:注意事项:参考代码:while True: a=int(input()) if a<=100 and a>=90: print('A') el……
列表注意还原为空列表
摘要:解题思路:注意事项:参考代码:while True: a,b,c=map(int,input().split()) d=[a,b,c] xx=sorted(d) if xx[0……
a,b=0时跳出循环
摘要:解题思路:注意事项:参考代码:while True: a,b=map(int,input().split()) if a==0 and b==0: break prin……
利用while循环的彻底性
摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))while 0 in a: a.remove(0)for i in a:……
将每一分钟对应的英文对应位列表
摘要:解题思路:注意事项:参考代码:h,m=map(int,input().split())a=['zero','one','two','three&……
高精度加法-python非要用列表
摘要: res = [0]*200
li1 = list(input())
li2 = list(input())
li1 = list(map(int,li1))[::……