会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sue_zheng
CnBlogs
Home
New Post
Contact
Admin
Subscription
2015年7月19日
python:为什么Tuple操作速度比List快
Dive into python中说道Tuple是不可变的List,一旦创建了一个Tuple,就不能以任何方式改变它。但是Tuple 比 list 操作速度快。如果您定义了一个值的常量集,并且唯一要用它做的是不断地遍历它,请使用 tuple 代替 list。我写了几行代码测试了一下:example_...
Read More
posted @ 2015-07-19 23:04 sue_zheng
Views(3091)
Comments(0)
Diggs(0)
Edit
公告