读取csv文件编码的方法

        with open(fpath, 'rb') as f:  
            result = chardet.detect(f.read()) 
            e = result['encoding']  
            print(e)

评论

暂无评论