擅长:python、mysql、java
<pre><code>print "%20s %20s %20s" % ("name","level","value")
for i in self.items:
print "%20s %20s %20s" % (i.name, i.lvl, i.value)
</code></pre>
<p>添加格式说明符。<a href="http://docs.python.org/2/library/stdtypes.html#string-formatting-operations" rel="noreferrer">http://docs.python.org/2/library/stdtypes.html#string-formatting-operations</a></p>