链接:
https://blog.youkuaiyun.com/florachy/article/details/80069737
原文中这里写的有错,可按照下面的修改
下载后修改:
94行引入的名称,从import StringIO改成import io
539行 self.outputBuffer=StringIO.StringIO()改成self.outputBuffer=io.StringIO()
631行 print>>sys.stderr,'\nTime Elapsed:%s' % (self.stopTime-self-startTime)修改为print(sys.stderr,'\nTime Elapsed:%s' % (self.stopTime-self.startTime))
642行 if not rmap.has_key(cls)换成 if not cls in rmap:
766行 uo=o.decode('latin-1')改成uo=o
772行 ue=e.decode('latin-1)改成ue=e