擅长:python、mysql、java
<p>这里有一个方法让他们进入一个列表。你知道吗</p>
<pre><code>letters = 'abcdefghijklmnopqrstuvwxyz'
ciphertext = input('Enter your ciphertext')
ciphertext = list(ciphertext.lower())
desiredArray = list(map(lambda x: int(letters.find(x)), ciphertext))
</code></pre>
<p>这将查找和转换为整数定义为“lambda”函数;“map”函数将lambda函数映射到密文的元素,“list”函数将结果转换为列表。这些都是值得学习的python片段。你知道吗</p>