题解列表
两种方式表示列表最后一个元素
摘要:解题思路:注意事项:参考代码:方法一:a=list(map(int,input().split()))
b=len(a)
while a[b-1]!=-1:
a.extend(list(……
这个程度为啥是中等题?
摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())
c=0
for i in range(a,b+1):
if i%3==1 and i%5==3:
……
和楼上老哥思路一样不过做法不同
摘要:解题思路:就是把一个列表分成两个新列表出来比较计算结果注意事项:参考代码:while True: l1 = list(map(int, input().split())) l2 = l1[……
编写题解 1053: 二级C语言-平均值计算(简单易懂的解题方法python)
摘要:解题思路:通过列表的广泛性解题的思路会更加宽阔。注意事项:熟练列表的使用参考代码:a=list(map(int,input().split())) //通过列表同时输入多个值,此时为列表形式
co……