Skip to content

又来提Bug的来了-对数组选择支持不良好 #69

Open
@friddle

Description

@friddle

假如大神不嫌麻烦的话帮我看一下,假如麻烦的话我自己去试用其他库。
用Xpath提取:
html.xpath("//li/em[@Class="count"]").all():
得出值为ArrayList:
4.8
4.8
4.8

html.xpath("//li/em[@Class="count"][0]").all()
得出为空
html.xpath("//li/em[@Class="count"][1]").all()
得出第一个表达式的值

同样的情况发生在text(1)上面。xpath("//li/em[@Class="count"]/text(1)")

是什么原因造成的?
祝好。

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions