python tuple
来源:互联网 发布:熊猫采集软件体验 编辑:程序博客网 时间:2024/06/06 18:16
python-tuple
简介
- tuple是一个有序的集合
- tuple和list很类似,但是tuple中元素不可更改
tuple操作
In [1]: myTuple = (2,True,4,96)In [2]: myTupleOut[2]: (2, True, 4, 96)In [3]: len(myTuple)Out[3]: 4In [4]: myTuple*3Out[4]: (2, True, 4, 96, 2, True, 4, 96, 2, True, 4, 96)In [5]: myTuple[0:2]Out[5]: (2, True)In [6]: myTuple[1] = False---------------------------------------------------------------------------TypeError Traceback (most recent call last)<ipython-input-6-eb935a311b80> in <module>()----> 1 myTuple[1] = FalseTypeError: 'tuple' object does not support item assignment
0 0
- Python---tuple
- python tuple
- Python:tuple
- python--tuple
- Python tuple
- python tuple
- Python-tuple
- Python的tuple
- Python中的tuple
- Python 之 tuple
- Python list and tuple
- Python Tuple 详解
- 【python】-list,tuple,dict
- <python>string,list,tuple
- python tuple函数使用
- python immutable tuple list
- Python:list,tuple,dict
- [Python]list, tuple,dict
- 关于SpringMVC使用@RequestBody注解接受json格式数据报415错误
- 关于PHP的自动加载
- 已经很久没有去认真写一次代码了。
- 信息隐藏LSB
- Windows下基于TCP协议的大文件传输(流形式)
- python tuple
- Struts2输入校验field-validator type 可取得值
- 实习日记1_2016.06.20
- libvlc 打开较大MP4文件,关闭慢的问题.
- Ubuntu安装JDK
- oracle彻底删除表空间和用户
- Latex 书写 IEEE 会议论文
- mybatis_user_guide(8) 日志
- linux遍历子进程浅析