擅长:python、mysql、java
<p>根据<a href="http://selenium-python.readthedocs.io/navigating.html#filling-in-forms" rel="nofollow noreferrer">docs</a>,可以通过说<code>select.options</code>获得Select元素的选项列表。在您的特定情况下,这将是<code>accountListBox.options</code>,您需要在<em>上调用<code>len()</code>,而不是在{<cd4>}实例本身上调用:</p>
<pre><code>print(len(accountListBox.options))
</code></pre>
<p>或者,如果只想打印当前选定选项的列表:</p>
^{pr2}$