DataFrame.loc的区间 df.loc[dates[0:1],'E']和df.loc[dates[0]:dates[1],'E']不同。 前者不包含**dates[1],后者是包含**dates[1]的。 根据Python3中实际代码效果总结。