题解列表

筛选

列表储存运算

摘要:解题思路:第一行应付格式注意事项:参考代码:n=input() a=list(map(int,input().split())) b=0 for i in a:     if i%2==0: ……

凑个数。。。。。

摘要:解题思路:。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:x = float(input()) if x < 1:    y = x elif x >= 1 an……

温度转换,两行

摘要:解题思路:。。。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:f=int(input()) print(&#39;{:.2f}&#39;.format(5/9*(f-……

字符格式化

摘要:解题思路:。。。。。。。。注意事项:。。。。。。。。。参考代码:n=int(input()) print(format(int(oct(n),8),&#39;o&#39;))……

题解 1097: 蛇行矩阵(6行代码)

摘要:解题思路 :# 蛇形数组定义:数组中的从1到((1+n)*n/2)的数字会蛇形的行走的排列                # 思路:建一个存下从1到n个数的列表,通过两个循环用公式输出        ……