import sys

 

reload( sys )
sys.setdefaultencoding('utf-8')

 

 

在需要print的地方,前面加上u

print u'%-18s %-12s %s' % (truncate(entry.title.text.encode('UTF-8')),
                                entry.GetDocumentType(),
                                entry.resourceId.text)

相关文章:

  • 2021-07-24
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2021-06-06
  • 2021-08-01
相关资源
相似解决方案