标签:res pre 检测 mode coding char close lang big5
f3 = open(file=path,mode=‘rb‘) data = f3.read() # print(data) f3.close() result = chardet.detect(data) print(result)
结果:
{‘encoding‘: ‘Big5‘, ‘confidence‘: 0.99, ‘language‘: ‘Chinese‘}
标签:res pre 检测 mode coding char close lang big5
原文地址:https://www.cnblogs.com/leoych/p/12841316.html