CARLJOSEPHLEE
CARLJOSEPHLEE
全部文章
分类
题解(26)
归档
标签
去牛客网
登录
/
注册
CARLJOSEPHLEE的博客
全部文章
(共209篇)
题解 | 名单中出现过的人
l = ("Tom","Tony","Allen","Cydin","Lucy","Anna") print(l) print("Congratulations!&quo...
2025-07-27
0
18
题解 | 修改报名名单
a = ("Niuniu","Niumei") print(a) try: a[1] = "Niukele" except TypeError: print("The entry form cannot be mo...
2025-07-27
0
12
题解 | 牛牛的矩阵相加
l = [[1,2,3],[4,5,6],[7,8,9]] n = int(input()) for i in range(3): for j in range(3): l[i][j] *= n print(l)
2025-07-27
0
15
题解 | 跳过列表的某个元素
for i in range(1,16): if i == 13: continue print(i,end=" ")
2025-07-27
0
14
题解 | 格式化清单
l = ["apple","ice cream","watermelon","chips","hotdogs","hotpot"] while l: l.pop() ...
2025-07-27
0
16
题解 | 列表解析
print(list(range(10)))
2025-07-27
0
14
题解 | 牛牛的绩点
from sys import stdin read1 = stdin.read().split() s = 0 n = 0 dict1 = {"A":4,"B":3,"C":2,"D":1,"F"...
2025-07-27
0
11
题解 | 菜品的价格
dict1 = {"pizza":10,"rice":2,"yogurt":5} for i in input().split(): print(dict1[i] if i in dict1 else 8)
2025-07-27
0
17
题解 | 团队分组
print("""['Tom', 'Allen'] ['Allen', 'Jane', 'William'] ['William', 'Tony']""")
2025-07-27
1
13
题解 | 密码游戏
秒了 l = list(map(int,input())) for i in range(4): l[i] = (l[i]+3)%9 for i in range(2): l[i],l[i+2] = l[i+2],l[i] print("".join(map(st...
2025-07-27
1
19
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页