import sys
import pandas as pd

t=pd.read_csv('Nowcoder.csv')
index=t.index[-5:]
print(t.loc[index,['Nowcoder_ID','Level','Achievement_value','Language']])


t.index表示之后的5行