擅长:python、mysql、java
<pre><code>total = card[1].value
def hit(total):
print("You draw the " + string(card[hit.counter]))
total += card[hit.counter].value
hit.counter += 1
return hit.counter, total
hit_counter, total = hit(total)
</code></pre>
<p>正如巴辛加所说,你没有达到总回报。如果希望返回多个值,可以如上所述执行,并在赋值中如上所示使用它们。你知道吗</p>