path=r"D:\各种模\选股结果"os.listdir(path)['ipynb_checkpoint','module.ipynb','文件夹1','文件夹2','表格2.xlsx']
应该是你这个引号有问题,“”中文引号,""英文引号
字符串引号不匹配,语法错误。