擅长:python、mysql、java
<p>正如<a href="https://stackoverflow.com/users/6223515/leovp">leovp</a>所提到的,有一种字符串格式化方法。
另外,还有一些包可以帮助更好地格式化;<a href="https://oneau.wordpress.com/2010/05/30/simple-formatted-tables-in-python-with-texttable/" rel="nofollow noreferrer">example</a>和该示例中使用的<a href="https://pypi.python.org/pypi/texttable" rel="nofollow noreferrer">link to the package</a>。你知道吗</p>