2019年6月24日

摘要: import chardet def get_encoding(filename): # 二进制方式读取,获取字节数据,检测编码类型 with open(filename, 'rb') as f: return chardet.detect(f.read())['encoding'] def fil 阅读全文
posted @ 2019-06-24 16:35 sdlyxyf 阅读(247) 评论(0) 推荐(0)

导航