新博客地址:http://gorthon.sinaapp.com/ 现实当中这样用是不好的,也是不安全的,纯粹是看看python的强大而已。 for i in range(10): exec 'item%d=%d'%(i,i) print item3