擅长:python、mysql、java
<p>字符串值<code>table</code>不是通过调用<code>replace()</code>就地修改的</strong>。而是返回替换的版本。如果要修改变量<code>table</code>,则需要重新赋值。在</p>
<pre><code>table = '\n2002 \u0152 present Assistant Professor, Department of Development Sociology, Cornell \n University, Ithaca, NY \n \n1999 \u0152'
table = table.replace('\u0152', '')
print table # Should have the output you want.
</code></pre>