python报错已解决:Unsupported format, or corrupt file: Expected BOF record; found b‘book\x00\x00\x00\x00‘
这个报错说明文件夹路径下有无法打开的文件,可以用try,except排查一下错误文件。```python#跳过问题文件合并dir = r'文件路径'all_data = []error_li = []for root,dirs,files in os.walk(dir): for file in files: file_path = os.path.join(root,file) try: df = pd.read_excel
原创
2021-04-13 14:31:14 ·
4480 阅读 ·
0 评论