题解 | #牛客网C系用户们的信息#
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',') pd.set_option('display.width', 300) # 设置字符显示宽度 pd.set_option('display.max_rows', None) # 设置显示最大行 pd.set_option('display.max_columns', None) print(Nowcoder[Nowcoder['Language'].isin(['CPP','C','C#'])]) print(Nowcoder.query("Language=='CPP' | Language=='C' | Language=='C#'"))