python-数据类型:元组,字典,列表

元组 a = ('a',2,'d') 不可修改,取值a[index],遍历  for i in a:

字典 b = {'a':1,'b':2} 可以修改,取值 b[key] 遍历for i in b.items():

列表 c = ['1,2,'e'] 可以修改,取值c[index] 遍历 for i in c:

猜你喜欢

转载自blog.csdn.net/huangmengfeng/article/details/88651784