首页 > 编程知识 正文

ansi格式编码,怎么转换为ansi编码

时间:2023-05-06 18:52:55 阅读:151171 作者:568

ANSI编码格式与UTF-8不兼容,在格式转换后会出现无法检测和删除空行的问题。 解决方案(定位、手动清除) : withopen (r ' d : (python project ) )xxxxx

- py torch-masterdatachar _ dict.txt ', 读取' Rb'(asfile:#文件) charinenumerate(file.readlines )以检测实际的非空白行数#char_dict={char.strip ).dict charinenumerate (file.read lines ) ) 3360lines 'ignore'(if(lines==' ' ) ) :print ) num ) else : char _ dicar (3360

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。