from builtins import unicode __builtins__是python2的写法,直接改成builtinsunicode依然报红改成:from past.builtins import unicode 以上