码迷,mamicode.com
首页 > 编程语言 > 详细

Python Note

时间:2014-07-19 16:20:01      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:style   strong   c   line   python   对象   

@1: 在Python中,strings, tuples, 和numbers是不可更改的对象,而list, dict等则是可以修改的对象。(NOTE: tuple不可变)

 

@2: list, tuple, str都是有序的;dict是无序的。

因为list, tuple, str有序,所以均可以通过下标进行索引,而dict是无序的,所以不能通过下标进行索引,只能通过键进行索引。

Python Note,布布扣,bubuko.com

Python Note

标签:style   strong   c   line   python   对象   

原文地址:http://www.cnblogs.com/lxw0109/p/python_note.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!