<p>用<code>\</code>转义嵌入的引号:</p>
<pre class="lang-py prettyprint-override"><code>"Some text with \"embedded\" quotes"
</code></pre>
<p>如果文本仅包含双引号,则可以使用单引号,而不必转义双引号:</p>
<pre class="lang-py prettyprint-override"><code>'Some text with "embedded" quotes'
</code></pre>
<p>最后但并非最不重要的一点是,您可以<em>三倍</em>外部引号,省得自己也必须避开换行:</p>
<pre class="lang-py prettyprint-override"><code>"""Some text with "embedded" quotes"""
"""Some text with "embedded" quotes
and a newline too"""
</code></pre>
<p>对于您的示例,单引号已经起到了作用:</p>
<pre class="lang-py prettyprint-override"><code>sentence = 'In 1794, shortly after his arrival in Manchester, Dalton was elected a member of the Manchester Literary and Philosophical Society, the "Lit & Phil", and a few weeks later he communicated his first paper on "Extraordinary facts relating to the vision of colours", in which he postulated that shortage in colour perception was caused by discoloration of the liquid medium of the eyeball. In fact, a shortage of colour perception in some people had not even been formally described or officially noticed until Dalton wrote about his own. Since both he and his brother were colour blind, he recognized that this condition must be hereditary.'
</code></pre>