您的位置:首页 > 理论基础 > 数据结构算法

python数据结构用法

2015-08-13 19:45 393 查看
list

shoplist = ['apple','mango','carrot','banana']

tuple

zoo = ('wolf','elephant','penguin')

dict

ab = {'Swaroop' : 'Swarooppch@byteofpython.info',

'Larry' : 'larry@wall.org'}

seq

shoplist = ['apple','mango','carrot','banana']

list, tuple, and character are seq but what is seq?

seq has two main character one is indexing,

the other is slicing.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: