牛烘烘
牛烘烘
全部文章
分类
题解(8)
归档
标签
去牛客网
登录
/
注册
牛烘烘的博客
全部文章
(共31篇)
题解 | #字母转数字#
print(ord(input()))
2022-12-05
0
265
题解 | #正数输出器#
print(abs(int(input())))
2022-12-05
0
279
题解 | #朋友的年龄和#
number = list(map(int, (input().split()))) print(sum(number))
2022-12-05
0
221
题解 | #列表的最值运算#
number = list(map(int, (input().split()))) print(max(number)) print(min(number))
2022-12-05
0
200
题解 | #字典新增#
dic = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'} c = input() word = input() dic[c] = word...
2022-12-05
1
219
题解 | #牛牛的矩阵相加#
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] n = int(input()) for i in matrix: for j in range(len(i)): i[j] *= nprint(matrix) print(matrix)
2022-12-05
0
219
题解 | #被5整除的数字#
my_list = [i for i in range(0, 51, 5)] my_list.pop(0) for i in my_list: print(i)
2022-12-04
1
270
题解 | #前10个偶数#
my_list = [i for i in range(0, 20, 2)] for i in my_list: print(i)
2022-12-04
0
195
题解 | #列表的最大与最小#
num = [i for i in range(10, 51)] print(num)print(f'{num[0]} {num[-1]}')
2022-12-04
7
389
题解 | #判断列表是否为空#
my_list = [] print(f'my_list is empty!' if len(my_list) == 0 else 'my_list is not empty!')
2022-12-03
1
202
首页
上一页
1
2
3
4
下一页
末页