擅长:python、mysql、java
<p>在创建包含它的列表之前,必须定义<code>bored</code><strong>:</p>
<pre><code>import random
# move bored definition here:
bored = {'emote':'bored', 'frame':135}
# now use it in a list construction
emotelist = [bored]
emotechosen = random.choice(emotelist)
emotename = emotechosen['emote']
emoteframe = emotechosen['frame']
print emotename
print emoteframe
</code></pre>