Moreover, since this is Python, I allow users to use not only XPath simple numeric indexing but also a general slice notation.
此外,因为使用的是Python,所以不仅允许用户使用简单的XPath数字索引,还允许用户使用一般的片段符号。
There are only two: the record for each line is now a dictionary rather than a hash, and the subsequent accesses to elements of each record use named lookups instead of numeric indexing.
只有两处:各行的记录现在是一个字典,而不是一个哈希表,每个记录的元素的后续访问使用已命名的查询,而不是数值索引。
应用推荐