使用pandas读入excel文件后进行切片操作,索引(index)默认是原文件的索引(index),通过reset_index()的方式来重置索引. 参数drop=True删除原索引,drop=False保存原索引到index列.