File "E:/02/爬虫/股票/收盘计算.py", line 520, in jisuan if (df.shape[0] > 20) :AttributeError: 'NoneType' object has no attribute 'shape'
df为None所以报错,你的df是什么
df没有读取到任何东西,检查一下df是否正确读取了文件