import pandas as pd Nowcoder=pd.read_csv('Nowcoder.csv') df1=Nowcoder['Continuous_check_in_days'].max() df2=Nowcoder['Continuous_check_in_days'].min() print(df1-df2) #x["a"].max()表示最大值 #x['a'].min()表示最小值