擅长:python、mysql、java
<p>在您的情况下,可以使用如下字符串格式:</p>
<pre><code>space = "space"
title = "new"
content = "content"
command_string = "programm space %(space) title %(title) content %(content)"
command = command_string % {'space': space, 'title': title, 'content': content}
</code></pre>