CARLJOSEPHLEE
CARLJOSEPHLEE
全部文章
分类
题解(26)
归档
标签
去牛客网
登录
/
注册
CARLJOSEPHLEE的博客
全部文章
(共216篇)
题解 | 跳过列表的某个元素
for i in range(1,16): if i == 13: continue print(i,end=" ")
2025-07-27
0
30
题解 | 格式化清单
l = ["apple","ice cream","watermelon","chips","hotdogs","hotpot"] while l: l.pop() ...
2025-07-27
0
34
题解 | 列表解析
print(list(range(10)))
2025-07-27
0
34
题解 | 牛牛的绩点
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
23
题解 | 菜品的价格
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
31
题解 | 团队分组
print("""['Tom', 'Allen'] ['Allen', 'Jane', 'William'] ['William', 'Tony']""")
2025-07-27
1
27
题解 | 密码游戏
秒了 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
30
题解 | 朋友们的喜好
print([['Niumei', 'YOLO', 'Niu Ke Le', 'Mona'], ['pizza', 'fish', 'potato', 'beef'], [3, 6, 0, 3]])
2025-07-27
1
23
题解 | 删除简历
l1 = list(input().split()) del l1[0] print(l1)
2025-07-27
1
32
题解 | 删除好友
l1 = list(input().split()) l1.remove(input()) print(l1)
2025-07-27
1
21
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页