擅长:python、mysql、java
<p>这可以简化为以下内容。你知道吗</p>
<pre><code>import random
mylist = ["a", "b", "c"]
mynums = ["1","2","3"]
myint = ["6","7","8"]
letterChoice = random.choice (mylist)
numberChoice = random.choice (mynums)
intchoice = random.choice (myint)
print (letterchoice)
if letterChoice == "a":
print (numberChoice)
elif letterChoice == "b":
print (intChoice)
</code></pre>