python查看文件的编码格式

安装: pip install chardet 代码: import chardet filePath = r"C:\Users\Lenovo\Desktop\G0001.TextGrid" with open(filePath, "rb") as f: content = f.read() result = chardet.detect(content) print(r
相关文章
相关标签/搜索