擅长:python、mysql、java
<p>尝试使用许多流行的软件包中的一个来打印表格o/p。我的建议是使用<code>tabulate</code></p>
<pre><code>from tabulate import tabulate
sales_persons_list = list('ABCDE')
sales_amounts_list = list('12345')
print (tabulate(zip(sales_persons_list, sales_amounts_list), tablefmt="plain"))
</code></pre>
<p><strong>输出</strong></p>
<pre><code>A 1
B 2
C 3
D 4
E 5
</code></pre>