剛寫代碼報錯: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