首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
牛客303439781号
获赞
35
粉丝
0
关注
2
看过 TA
8
大连理工大学
2027
算法工程师
IP属地:北京
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客303439781号吗?
发布(21)
评论
刷题
收藏
牛客303439781号
关注TA,不错过内容更新
关注
03-09 17:17
大连理工大学 算法工程师
offer 选择
投票
各位大佬们,这个怎么选啊!
0
点赞
评论
收藏
分享
2023-07-05 11:30
大连理工大学 算法工程师
题解 | #使用字典计数#
dict1=dict() str1=input() for i in str1: dict1[i]=dict1.get(i,0)+1 print(dict1)
0
点赞
评论
收藏
分享
2023-07-05 11:23
大连理工大学 算法工程师
题解 | #生成字典#
list1=list(input().split()) list2=list(input().split()) print(dict(zip(list1,list2)))
0
点赞
评论
收藏
分享
2023-07-05 11:21
大连理工大学 算法工程师
题解 | #喜欢的颜色#
result_dict={'Allen': ['red', 'blue', 'yellow'],'Tom': ['green', 'white', 'blue'],'Andy': ['black', 'pink']} for i in sorted(result_dict.keys()): print(f"{i}'s favorite colors are:") for j in result_dict[i]: print(j)
0
点赞
评论
收藏
分享
2023-07-05 11:17
大连理工大学 算法工程师
题解 | #首都#
cite_dict = {'Beijing': {'Capital': 'China'},'Moscow': {'Capital': 'Russia'},'Paris': {'Capital': 'France'}} for i in sorted(cite_dict.keys()): print(f'{i} is the capital of {cite_dict[i]["Capital"]}!')
0
点赞
评论
收藏
分享
2023-07-05 11:12
大连理工大学 算法工程师
题解 | #姓名与学号#
from os import name my_dict1={'name': 'Niuniu','Student ID': 1} my_dict2={'name': 'Niumei','Student ID': 2} my_dict3={'name': 'Niu Ke Le','Student ID': 3} dict_list=list() dict_list.append(my_dict1) dict_list.append(my_dict2) dict_list.append(my_dict3) for i in dict_list: print(f"{i['name']}'s stude...
0
点赞
评论
收藏
分享
2023-07-05 11:01
大连理工大学 算法工程师
题解 | #毕业生就业调查#
survey_list=['Niumei','Niu Ke Le','GURR','LOLO'] result_dict={'Niumei': 'Nowcoder','GURR': 'HUAWEI'} for i in survey_list: if i in result_dict.keys(): print(f'Hi, {i}! Thank you for participating in our graduation survey!') else: print(f'Hi, {i}! Could you take part in our graduation survey?')
0
点赞
评论
收藏
分享
2023-07-05 10:50
大连理工大学 算法工程师
题解 | #遍历字典#
a={'<': 'less than','==': 'equal'} print('Here is the original dict: ') a_list=a.keys() sorted(a_list) for i in a_list: print(f"Operator {i} means {a[i]}.") print() a['>']='greater than' print('The dict was changed to:') sorted(a_list) for i in a_list: print(f"Operator {i} means {a[i]}.")
0
点赞
评论
收藏
分享
2023-07-05 10:25
大连理工大学 算法工程师
题解 | #输出前三同学的成绩#
x=list(input().split()) w=tuple(x[:3]) print(w)
0
点赞
评论
收藏
分享
2023-07-05 10:21
大连理工大学 算法工程师
题解 | #修改报名名单#
entry_form=('Niuniu','Niumei') print(entry_form) try: entry_form[1] = 'Niukele' except TypeError: print('The entry form cannot be modified!')
0
点赞
评论
收藏
分享
2023-07-05 10:15
大连理工大学 算法工程师
题解 | #运动会双人项目#
s=list() s.append(input()) s.append(input()) w=tuple(s) print(w)
0
点赞
评论
收藏
分享
2023-07-04 14:58
大连理工大学 算法工程师
题解 | #有序的列表#
from re import T my_list=['P','y','t','h','o','n'] print(sorted(my_list)) print(my_list) my_list.sort(reverse=True) print(my_list)
0
点赞
评论
收藏
分享
2023-07-04 14:53
大连理工大学 算法工程师
题解 | #淘汰排名最后的学生#
x=input().split() for i in range(3): x.pop() print(x)
0
点赞
评论
收藏
分享
2023-07-04 14:50
大连理工大学 算法工程师
题解 | #删除好友#
remove没有返回值 x=input().split() x.remove(input()) print(x)
0
点赞
评论
收藏
分享
2023-07-04 14:47
大连理工大学 算法工程师
题解 | #删除简历#
x=input().split() del(x[0]) print(x)
0
点赞
评论
收藏
分享
1
2
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务