AttributeError: 'str' object has no attribute 'xpath'
你的p在哪?,无缘无故有这个字母呀,你不奇怪吗?应该缺一个循环
for p in p_list:
然后用p进行定位