python数据结构

列表  shoplist = ['apple''mango''carrot''banana']  可修改

元组 不可修改

print '%s is %d years old' %(name, year)

字典

d = {

key1 : value1,

key2 : value2

}

原文地址:https://www.cnblogs.com/leegoo/p/3449867.html