首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
AI面试、笔试、校招、雇品
HR免费试用AI面试
最新面试提效必备
登录
/
注册
前程似锦的懒羊羊很自来熟
获赞
6
粉丝
1
关注
0
看过 TA
17
厦门大学
2024
数据分析师
IP属地:上海
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑前程似锦的懒羊羊很自来熟吗?
发布(148)
评论
刷题
收藏
前程似锦的懒羊羊很自来熟
关注TA,不错过内容更新
关注
2023-09-23 13:56
厦门大学 数据分析师
题解 | #列表中第一次出现的位置#
list1=input().split() print(list1.index("NiuNiu"))
0
点赞
评论
收藏
分享
2023-09-23 13:54
厦门大学 数据分析师
题解 | #错误出现的次数#
list1=input().split() sum=0 for i in list1: if i=="0": sum+=1 print(sum)
0
点赞
评论
收藏
分享
2023-09-23 13:53
厦门大学 数据分析师
题解 | #数学幂运算#
list1=input().split() c=eval(list1[0])**eval(list1[1]) d=eval(list1[1])**eval(list1[0]) print(c) print(d)
0
点赞
评论
收藏
分享
2023-09-22 14:14
厦门大学 数据分析师
题解 | #数字的十六进制#
a=eval(input()) print(hex(a))
0
点赞
评论
收藏
分享
2023-09-22 14:14
厦门大学 数据分析师
题解 | #字母转数字#
m=input() print(ord(m))
0
点赞
评论
收藏
分享
2023-09-22 14:12
厦门大学 数据分析师
题解 | #正数输出器#
a=eval(input()) if a>=0: print(a) else: print(-a)
0
点赞
评论
收藏
分享
2023-09-22 14:10
厦门大学 数据分析师
题解 | #朋友的年龄和#
a=input().split() sum=0 for i in a: sum+=int(i) print(sum)
0
点赞
评论
收藏
分享
2023-09-22 14:08
厦门大学 数据分析师
题解 | #列表的最值运算#
list1=input().split() list2=[] for i in list1: list2.append(int(i)) print(max(list2)) print(min(list2))
0
点赞
评论
收藏
分享
2023-09-22 14:01
厦门大学 数据分析师
题解 | #使用字典计数#
a=input() dict1={} for i in a: if i in dict1: dict1[i]+=1 else: dict1[i]=1 print(dict1)
0
点赞
评论
收藏
分享
2023-09-22 13:53
厦门大学 数据分析师
题解 | #查字典#
dict1={ 'a':['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down' } m=input() for i in dict1[m]: print(i,end=' ')
0
点赞
评论
收藏
分享
2023-09-22 13:49
厦门大学 数据分析师
题解 | #生成字典#
a=input().split() b=input().split() dict1=zip(a,b) print(dict(dict1))
0
点赞
评论
收藏
分享
2023-09-22 13:47
厦门大学 数据分析师
题解 | #喜欢的颜色#
result_dict={'Allen': ['red', 'blue', 'yellow'],'Tom': ['green', 'white', 'blue'],'Andy': ['black', 'pink']} for i in sorted(result_dict): print(f"{i}'s favorite colors are:") for j in result_dict[i]: print(j)
0
点赞
评论
收藏
分享
2023-09-21 11:15
厦门大学 数据分析师
题解 | #遍历字典#
operator_dict={"<":"less than","==":"equal"} print("Here is the original dict:") for i in sorted(operator_dict): j=operator_dict[i] print(f"Operator {i} means {j}.") operator_dict['>']="greater than" print() print("The ...
0
点赞
评论
收藏
分享
2023-09-21 11:07
厦门大学 数据分析师
题解 | #姓名与学号#
my_dict_1={'name': 'Niuniu','Student ID': 1} my_dict_2={'name': 'Niumei','Student ID': 2} my_dict_3={'name': 'Niu Ke Le','Student ID': 3} dict_list=[] dict_list.append(my_dict_1) dict_list.append(my_dict_2) dict_list.append(my_dict_3) for i in dict_list: a=i['name'] b=i['Student ID'] print(f"{a...
0
点赞
评论
收藏
分享
2023-09-21 10:57
厦门大学 数据分析师
题解 | #毕业生就业调查#
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 graduati...
0
点赞
评论
收藏
分享
1
3
4
5
6
7
10
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客网在线编程
牛客网题解
牛客企业服务