擅长:python、mysql、java
<p>这就是标签的工作原理。要获得正确的格式,应该使用<a href="http://docs.python.org/library/stdtypes.html#str.format" rel="nofollow">^{<cd1>}</a>。以你的例子来说,可能是这样的:</p>
<pre><code>print "{0:2d} {1:9.8f} {2:f} %".format(a, newRoot, percentError)
</code></pre>