都
encode的 了
为何还检测? 多此一举?
举例只是为了证明chardet的准确性。。。
换个写法:
>>> data = b'\xc0\xeb\xc0\xeb\xd4\xad\xc9\xcf\xb2\xdd\xa3\xac\xd2\xbb\xcb\xea\xd2\xbb\xbf\xdd\xc8\xd9' >>> chardet.detect(data) {'encoding': 'GB2312', 'confidence': 0.7407407407407407, 'language': 'Chinese'}
Sign in to make a reply
我很有素质
都
为何还检测? 多此一举?