题解列表

筛选

自定义函数之数字分离

摘要:解题思路:注意事项:参考代码:def function(x):     return print(' '.join(x)) if __name__ == '__main……

自定义函数之字符提取

摘要:解题思路:注意事项:参考代码:def function(x):     aeiou = "aeiou"     str = []     for i in x:         if i

二维数组的转置

摘要:解题思路:注意事项:参考代码:def function(arr):     list = []     for j in range(3):         str = ""      

自定义函数处理素数

摘要:解题思路:注意事项:参考代码:def function(x):     for i in range(2, x):         if x % i == 0:          &nbs

十行简便 有规律的数列求和

摘要:解题思路:利用列表的方式注意事项:注意两位小数参考代码:n=int(input())a=[2]b=[1]s=0for i in range(n):    a.append(a[i]+b[i])    ……

python--study||O.o

摘要:参考代码:column = int(input()) s = input() row = len(s) // column arr = [list(s[i * column: (i + 1) *……

python--study||O.o

摘要:参考代码:dx = (-1, 0, 1, 0) dy = (0, -1, 0, 1) def judge(x, y):     if x == 0 or x == n - 1 or y ……