查看字符串的编码chardet The Universal Character Encoding Detector chardet.detect("str") 返回:{‘confidence’:1.0,'encoding':'ascii'}