刚写代码报错:AttributeError: 'unicode' object has no attribute 'xpath'3d
场景是这样的:code
而后运行就报错:AttributeError: 'unicode' object has no attribute 'xpath'xml
开始上网找了不少解决办法都没用,后来看到了这里的解决办法:blog
http://stackoverflow.com/questions/31586169/attributeerror-unicode-object-has-no-attribute-xpath-issueip
还有段话这样说的:unicode
使用lxml将 i 转化下,才能正常使用,如今是这样作的:io