擅长:python、mysql、java
<p>使用<a href="http://docs.python.org/library/string.html#format-examples" rel="nofollow">new format specifications</a>,可以按名称访问参数:</p>
<pre><code>'ls /home/user/images/cappi/03000/{year}/{month}/{day}'.format(year=y, month=m, day=d)
</code></pre>