“matplotlib display text must have all code points < 128 or use Unicode strings”解决方法 import sys reload(sys) sys.setdefaultencoding('utf-8') 插入以上代码,便可解决。