擅长:python、mysql、java
<p>bphi是对的,使用字符串格式
e、 g</p>
<pre><code>test1 = "I think {name} should be our {position}. Only {name} is experienced. Who else could be a {position}?"
test1.format(name="Bob", position="top cat")
> 'I think Bob should be our top cat. Only Bob is experienced. Who else could be a top cat?'
</code></pre>