擅长:python、mysql、java
<pre><code> `str.format`: New in version 2.6.
</code></pre>
<p><a href="http://docs.python.org/library/stdtypes.html#str.format" rel="nofollow noreferrer">http://docs.python.org/library/stdtypes.html#str.format</a></p>
<p>另见<a href="https://stackoverflow.com/q/4643981/989121">Is there a Python module for 2.5 that provides something similar to the "string".format() call in 2.6?</a></p>