# -*- coding:utf-8 -*-
'''
如何将字符/字符串转成变量名
'''
s='abc' # 将a,b,c做为变量使用
for i,item in enumerate(s):
exec(item+'=%f'%i)
print(a)
print(b)
print(c)
d=a+b+c
print(d)
'''
0.0
1.0
2.0
3.0
'''
# 新建二维list
s=[]
for i in range(10):
s.append(list())
print(s)