喜欢走神的牛油果顶呱呱
喜欢走神的牛油果顶呱呱
全部文章
分类
题解(24)
归档
标签
去牛客网
登录
/
注册
喜欢走神的牛油果顶呱呱的博客
全部文章
(共47篇)
题解 | #牛牛的矩阵相加#
list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] n = int(input()) for i in range(3): for j in range(3): list[i][j] *= n print(list)
2023-02-01
0
200
题解 | #提前结束的循环#
num_list = [3, 45, 9, 8, 12, 89, 103, 42, 54, 79] guess_num = int(input()) for i in range(0, len(num_list) - 1): if guess_num == num_list[i]: ...
2023-02-01
0
311
题解 | #2的次方数#
my_list = [2 ** i for i in range(1, 11)] for i in my_list: print(i)
2023-02-01
0
154
题解 | #前10个偶数#
my_list = [i for i in range(0, 20) if i%2 == 0] for i in my_list: print(i, end='\n')
2023-02-01
0
184
题解 | #累加数与平均值#
age_list = input().split(' ') sum = 0 for i in age_list: sum += int(i) print(sum, '%.1f'%(sum/len(age_list)))
2023-02-01
0
214
题解 | #列表的最大与最小#
list = [i for i in range(10, 51)] print(list) print(list[0], list[40], sep=' ')
2023-02-01
0
229
题解 | #字符列表的长度#
my_list = ['P', 'y', 't', 'h', 'o', 'n'] print('Here is the original list:', my_list, '','The number that my_list has is:', len(my_list), sep='\n')
2023-02-01
0
225
题解 | #俱乐部的成员#
name = input().split(' ') name_search = input() print(name_search in name)
2023-01-31
0
157
题解 | #字符串之间的比较#
s1 = input() s2 = input() print(s1 == s2, s1.lower() == s2.lower(), sep='\n')
2023-01-31
0
241
题解 | #删除好友#
names = input('').split(' ') name_remove = input('') for i in names: if i == name_remove: names.remove(i) print(names)
2023-01-28
0
187
首页
上一页
1
2
3
4
5
下一页
末页