擅长:python、mysql、java
<p>你的问题很简单,<code>TypeError: addElement() takes exactly 1 argument (0 given)</code>。你知道吗</p>
<p>它告诉我们您的问题是函数的param,而您的param是在线程<code>args=(listOfElements)</code>中给出的,看起来不错,但是语法错误。你知道吗</p>
<p>在python中,元组是特殊的,如下所示:</p>
<pre><code>a = () # a has no element
a = (1) # error
a = (1,) # yes, a has one element, the dot cannot be missing, special
a = (1,2) # yes, a has two
</code></pre>
<p>你可以试试。你知道吗</p>