<p>我有一份语言清单。比如说</p>
<pre><code>languages = ['RU', ' EN', ' DE']
</code></pre>
<p>我需要为每种语言做一个不同动作的练习。
我试着用以下方式来做:</p>
<pre><code>for x in languages:
if x == 'EN':
print(x, 'English')
elif x == 'RU':
print(x, 'Russian')
elif x == 'DE':
print(x, 'German')
else:
print('New Language')
</code></pre>
<p>但我只有一种语言的结果</p>
<pre><code>RU Russian
New Language
New Language
New Language
New Language
</code></pre>
<p>如何获得列表中每种语言的结果?
多谢各位</p>