擅长:python、mysql、java
<p>该页面有多个id=关键字的元素,因此结果是一个列表。要发送密钥,请从列表中选择第一个元素:</p>
<p>请尝试以下代码:</p>
<pre><code>search = css('keyword')[0] #("span.show.clearfix input")#css("#keyword")#get search field
</code></pre>
<p>您可能应该更改函数<code>css</code>的名称,因为它实际上是按元素id进行搜索的</p>