解决Python2.7的UnicodeEncodeError: ‘ascii’ codec can’t encode异常错误 在练习统计txt文档中出现的字符次数的过程中,解决UnicodeEncodeError: ‘ascii’ codec can’t encode异常错误 最后的效果如下图所示