擅长:python、mysql、java
<p>您可以尝试使用内置的<a href="https://docs.python.org/3/library/functions.html#chr" rel="nofollow noreferrer">^{<cd1>}</a>方法:</p>
<pre><code>def phone(x):
return ''.join((chr(int(i) + 97)) for i in x)
print(phone('210344222'))
</code></pre>
<p>输出:</p>
<pre><code>cbadeeccc
</code></pre>
<p>其中<code>chr(97)</code>返回<code>'a'</code>,<code>chr(98)</code>返回<code>'b'</code>,依此类推,因此是<code>int(i) + 97</code>位</p>