Python 获取LOL中所有英雄的传记时运行才下载三条数据就报错

UnicodeEncodeError: 'gbk' codec can't encode character '\u2022' in position 178: illegal multibyte sequence

解决方法:

open 函数中加入:

encoding='gb18030', errors='ignore'

就可以了

UnicodeEncodeError: