擅长:python、mysql、java
<p><strong>代码:</strong></p>
<pre><code>list = ['a','e','i','o','u']
string = 'str'
out = [string[:i] + c + string[i + 1:] for i in range(len(string)) for c in list]
</code></pre>
<p><strong>输出:</strong></p>
<pre><code>['atr', 'etr', 'itr', 'otr', 'utr', 'sar', 'ser', 'sir', 'sor', 'sur', 'sta', 'ste', 'sti', 'sto', 'stu']
</code></pre>