python检测文件编码格式
摘要:
#encoding=utf-8 import os import chardet path1 = r"D:\n.xls" with open(path1,'rb') as f: print(chardet.detect(f.read())['encoding']) 阅读全文
posted @ 2023-03-01 15:52 pu369com 阅读(46) 评论(0) 推荐(0)
posted @ 2023-03-01 15:52 pu369com 阅读(46) 评论(0) 推荐(0)