<div>
</div>
<pre><code>str1 = "series of sentences that are organized and coherent, and are all related to a single topic. Almost every piece of writing you do that is longer than a few **sentences** should be organized into paragraphs."
REPLACE_STRING = {"series":"web" , "sentence":"long paragraph"}
</code></pre>
<p>输出:</p>
<pre><code>web of long paragraph that are organized and coherent, and are all related to a single topic. Almost every piece of writing you do that is longer than a few **long paragraph** should be organized into paragraphs.
</code></pre>
<p>基本上需要一次性用字典中的键替换str中的所有值</p>