擅长:python、mysql、java
<p>好吧。这个代码很奇怪。在</p>
<p>作为这样的一行程序,它在语法上是不正确的,但我怀疑您由于某种原因而错过了换行符。但后来它变成了</p>
<pre><code>a = ['zbc','2.3']
for i in range(0,5):
exec('E%d=%s' %(i,a[i]))
</code></pre>
<p>但这将导致引用[i]时出现索引错误,如图所示:</p>
^{pr2}$
<p>如果你避免这个问题,你会得到</p>
<pre><code>exec("E2.3=1")
</code></pre>
<p>在第二次通过lopp时,这也是一个语法错误。在</p>