剛寫代碼報錯:AttributeError: 'unicode' object has no attribute 'xpath'
場景是這樣的:

然后運行就報錯:AttributeError: 'unicode' object has no attribute 'xpath'
開始上網找了很多解決辦法都沒用,后來看到了這里的解決辦法:
http://stackoverflow.com/questions/31586169/attributeerror-unicode-object-has-no-attribute-xpath-issue
還有段話這樣說的:

使用lxml將 i 轉化下,才能正常使用,現在是這樣做的:
