Python(3)
来源:互联网 发布:手机fps软件 编辑:程序博客网 时间:2024/06/05 10:11
Python还有一种有序列表和list相似但有不同,是tuple。
使用方法:Q=( , , ,) #注意,list是[ ],tuple中的元素不能删除和插入,一旦写入,不能更改
索引方法和list相同: Q[1]
包含0个元素的tuple:Q=( )
单元素的tuple: Q=(3,)或者Q=('rose',) #注意为了tuple的单元素不和优先级运算的()混淆,使用tuple的单元素时别忘了逗号!
1 0
- python 2 & python 3
- Python 3 会害死 Python
- Python--python基础知识(3)
- python(3)
- Python(3)
- python - 3
- python-3
- python 3
- python 2 和 python 3
- Python print 语句(Python 2 与 Python 3)
- Python 初学者 入门 应该学习 python 2 还是 python 3?
- 【python基础知识】python 2 与python 3 的差异
- Python编程 (Programming Python, 3rd Edition)
- 【Python开发web】(3) -- Python基础之一
- Python 3 与Python 2的区别
- Python 3 与Python 2的区别
- Python基础 3----Python函数及类
- Python自学3:Python的基本类型
- spring声明式事务 同一类内方法调用事务失效
- 自定义View系列教程06--详解View的Touch事件处理
- android async-http使用
- Python Http发送模块实现
- python环境搭建
- Python(3)
- WEBP
- 关于android IPC(AIDL、Binder、Messenger)通信
- 精通iOS开发-第15章 Grand Central Dispatch和后台处理
- 检验完全平方数
- swift2.0 学习笔记Twenty
- Android多媒体学习四:实现图像的编辑和合成
- 数据库
- hadoop 第一节 安装与配置