题解 | #牛客网不同毕业年份的大佬#
牛客网不同毕业年份的大佬
https://www.nowcoder.com/practice/3ea8f01f5d3b4b6fbdb53c522a0dc4ef
import sys import pandas as pd pd.set_option('display.max_columns',None) pd.set_option('display.max_rows',None) fm=pd.read_csv('Nowcoder.csv',sep=',') fm=fm[['Graduate_year','Achievement_value']] print(fm.groupby('Graduate_year')["Achievement_value"].max()) #下面Achievement_value多套了层中括号导致错误[] #print(fm.groupby('Graduate_year')[["Achievement_value"]].max()) for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1]))