擅长:python、mysql、java
<p>尝试使用<code>print(thing, end = '')</code>。那应该很管用</p>
<pre><code>def DisplayCard(row, column, array):
x=0
t=""
while x < column:
s = array[x]
t = ''.join(s).replace("\n", "")
x=x+1
print(t, end = ''),
</code></pre>
<p>或者将它们附加到一个字符串中</p>
<pre><code>def DisplayCard(row, column, array):
x=0
t=""
while x < column:
s = array[x]
t += ''.join(s).replace("\n", "")
x=x+1
print(t)
</code></pre>