摘要: 查看文件的编码格式 with open(r"C:\Users\Administrator\Desktop\111\2.1 (1)smile.txt", 'rb+') as fp: content = fp.read() print(chardet.detect(content)) #{'encodi 阅读全文
posted @ 2021-02-05 14:52 zhw_sylvia 阅读(941) 评论(0) 推荐(0) 编辑