首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
牛客605880481号
获赞
40
粉丝
4
关注
4
看过 TA
33
四川大学
2022
产品经理
IP属地:四川
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑牛客605880481号吗?
发布(75)
刷题
牛客605880481号
2023-03-04 22:42
产品经理
题解 | #统计618的销售额#
import pandas as pd import datetime df=pd.read_csv('Order.csv') pd.to_datetime(df['date']) print(df[df['date']=='2022/6/18']['price'].sum())
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-04 22:19
产品经理
题解 | #快递站点信息#
import pandas as pd df=pd.read_csv('Nowcoder.csv') df_new=df.loc[(df['Date']=='2022/6/18')&(df['Type']==1),'Destination'] print(df_new)
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-04 22:00
产品经理
题解 | #筛选618的订单#
from datetime import date import pandas as pd df = pd.read_csv("Order.csv", sep=",", dtype=object) result = df.loc[ df["date"] == "2022/6/18", ["price", "shop_name"] ] # 第一个参数选取哪些行,第二个参数选取哪些列 print(result)
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-02 21:46
产品经理
题解 | #计算题目难度#
grade_list=input().split() def level_oftest(grade_list): sum =0 for i in grade_list: sum=sum+eval(i) ave=sum/len(grade_list) return ave/grade_list.count('100') result=level_oftest(grade_list) print('{:.1f}'.format(result))
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-02 21:29
产品经理
题解 | #多部门的打工人#
class Nowcoder: def __init__(self,name,ID,num) -> None: self.name=name self.ID=ID self.num=num def printInformation(self): print('{}\'s ID is {}, and his or her number of signing in is {}.'.format(self.name,self.ID, self.num)) class IT(Nowcoder): de...
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-02 12:38
产品经理
题解 | #打工人的统计#
class Nowcoder: def __init__(self,name,ID,nums) -> None: self.name=name self.ID=ID self.nums=nums self.days=1 def print_info(self): print(self.name,self.ID,self.nums,self.days,sep='\n') name01=input().split() name02=input().split() NiuNiu= Nowcode...
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 22:31
产品经理
题解 | #圆的面积#
import math radius=float(input()) result =math.pi*math.pow (radius,2) print('{:.3f}'.format(result))
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 22:25
产品经理
题解 | #中彩票的的概率#
lottery=input().split() possibility=input().split() n=input().split() lottery_combination={} result=1 j=0 for i in lottery: lottery_combination[i]=possibility[j] j=j+1 for i in n: result=result*float(lottery_combination[i]) # print(possibility) # print(lottery_combination) print('{:.3f}'...
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 22:05
产品经理
题解 | #单词统计#
dict_input={'word': 2, 'while': 15, 'for': 20, 'if': 26, 'else': 14, 'print': 9} input_world=input() if input_world in dict_input.keys(): dict_input[input_world]+=1 else: dict_input[input_world]=1 print(dict_input)
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 21:58
产品经理
题解 | #记录喜好的字典#
dict_lang={ 'NiuNiu':'Java', 'NiuMei':'Python', 'Niukele':'CPP', 'NiuNeng':'Python', 'Tony':'Java', 'Anna':'CPP', 'Allen':'CPP', } input_lang=input() list_result=[] for i in dict_lang.keys(): if input_lang not in dict_lang.values(): print('Nobody') ...
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 21:06
产品经理
题解 | #消除牛牛不喜欢的空格#
sentence=input() print(sentence.strip())
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 21:04
产品经理
题解 | #圆周率的截取#
pi=input() n=int(input()) print(pi[n]) print(pi[0:n+2])
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 20:51
产品经理
题解 | #牛牛数数字#
# list_input=input().split() # for i in list_input: # if eval(i)!=3 and eval(i)!=8: # print(i) # elif eval(i)==3: # continue # elif eval(i)==8: # break #上面是先将字符串列表转换为数字型的列表,两种方法都可以 list_input=list(map(int,input().split())) for i in list_input: if i!=3 and ...
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 20:25
产品经理
题解 | #牛牛的抽奖游戏#
number_guess=int(input())#输入 lucky_number=3 flag=True while flag: if number_guess<0:#判断输入是否是负数,若是,则跳出循环 flag =False print('Give up!') break else: if number_guess!=lucky_number:#不是负数的情况下继续让用户输入,然后继续判断 number_guess=int(input()) if num...
0
点赞
评论
收藏
转发
牛客605880481号
2023-03-01 17:46
产品经理
题解 | #统计人次#
checkin_list=input().split() #也可以用以下这个函数做次数统计 # def count_check(checkin_list): # count=0 # for i in checkin_list: # if i=="NiuNiu": # count+=1 # return count Index=checkin_list.index('NiuNiu') count=checkin_list.count('NiuNiu') print(count) print(Index)
0
点赞
评论
收藏
转发
1
2
3
4
5
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务