title: Replace placeholder with format function in python3
body: <pre><code>python3
  width=4
  ' {:&gt;%d} ' %width
  ' {:&gt;4} '
  width=8
  ' {:&gt;%d} ' %width
  ' {:&gt;8} '
  </code></pre>
  
  <p>I want to get the above effect with format function in python3.</p>
  
  <pre><code>width=4
  ' {:&gt;%d} '.format(width)
  ' {:&gt;%{0}} '.format(width)    
  </code></pre>
  
  <p>None of them can get <code>' {:&gt;4} '</code> with format function.  </p>
  
  <pre><code>' :&gt;%{0} '.format(width)
  ' :&gt;%4 '
  </code></pre>
  
  <p>How to get the string <code>' {:&gt;4} '</code>  instead of <code>' :&gt;%4 '</code> with format function?<br>
  I don't like the expression:</p>
  
  <pre><code>&gt;&gt;&gt; '{' + ' :&gt;%{0} '.format(width) + '}'
  '{ :&gt;%4 }'
  </code></pre>