擅长:python、mysql、java
<p>你的<code>join</code>调用没有意义。你可能想要这样的东西:</p>
<pre><code>def __str__(self):
return "Athlete[fullName="
+ str(self.fullName)
+ ",dob="
+ str(self.dob)
+ ",sortedTimes="
+ str(self.sortedTimes)
+ "]"
</code></pre>
<p>我已经将<code>str</code>添加到每个属性中,因为我无法确定您在其中的哪个属性中添加了<code>list</code>。这个问题从错误列表中很明显-不能隐式转换为字符串-您需要通过<code>str()</code>调用显式地标记此转换。您的一个属性(<code>dob</code>或<code>times</code>很可能)是一个列表。在</p>