擅长:python、mysql、java
<p>字符串格式化运算符%还可以执行其他简单的操作:</p>
<pre><code>STRING = "This is %(foo)s, and this is also %(foo)s"
print STRING % {"foo": "BAR"}
# => This is BAR, and this is also BAR
</code></pre>
<p>如果你要重复一个论点,这是非常有用的。当然是节拍</p>
^{pr2}$
<p>你也可以做填充和数字格式化。在</p>