擅长:python、mysql、java
<p>你不必写三个单子。循环遍历<code>list</code>,然后循环遍历每个字符,将其中的每个字符用作<code>replace</code>参数。你知道吗</p>
<pre><code>for element in list: #element in be 'eto', then 'eti' ...
for character in element: # character will be 'e','t','i' then 'e','t','o'...
newC = [w.replace(mCommon[0], character) for w in newC]
</code></pre>
<p>需要注意的是,上面的代码假定<code>newC</code>已经存在于代码中的某个地方。你知道吗</p>