<pre><code>print(type(players[1]))
for player in players:
player = str(player)
print(type(players[1]))
</code></pre>
<p>输出为:</p>
^{pr2}$
<p>我需要将这个ElementUnicode对象转换成一个字符串,这样我就可以调用它的子字符串了,但是这个for循环没有这样做。当我把它转换成一个字符串并同时调用substring时,控制台显示:str object没有object substring,这没有意义。在</p>
<pre><code> str(players[i]).substring()
</code></pre>
<p>有什么想法可以解释为什么会是这种情况,以及我怎样才能在这个对象上调用substring?在</p>