题解 | 牛客网用户最高的正确率
import pandas as pd
pd.set_option("display.width", 300) # 设置字符显示宽度
pd.set_option("display.max_rows", None) # 设置显示最大行
pd.set_option("display.max_columns", None)
df = pd.read_csv("Nowcoder.csv", sep=",")
data_greater_10 = df.query('Num_of_exercise>10')
print(f"{(data_greater_10['Num_of_exercise']/data_greater_10['Number_of_submissions']).max():.3f}")

查看9道真题和解析