对于以下内容,正确的语法是什么?
trailer_node.find('''
data_file[@role="source"]/
attribute[@name="image.burned_forced_narrative.locale" or @name="hello"]
''')当前我从lxml获得InvalidPredicate错误
发布于 2016-02-15 21:38:14
如果要使用.find()语法,则不能使用XPath。使用.xpath()代替。
https://stackoverflow.com/questions/35419506
复制相似问题