<p>例如:</p>
<pre><code>import random
Bandit="B"
List=["","","",""]
</code></pre>
<p>像这样:</p>
<pre><code>import random
List=["","","",""]
List[i]='B'
for i in range(0,2):
print(random.randint(List[i]))
</code></pre>
<p>Aka不起作用</p>
<p>我希望它打印出来的函数如下:</p>
<pre><code>print["B","","B",""] or ["","B","","B"] and all the other combinations
</code></pre>