Python3元组
来源:互联网 发布:集成声卡调试软件 编辑:程序博客网 时间:2024/05/24 22:42
元组功能与列表类似
不同之处在于元组内的元素无法修改
元组用小括号
tup1=(1,2,3,4,5)
创建空元组
tup2=()
当元组中只有一个元素时,元素后需要加逗号
tup3=(qmlpn,)
输出元组中的值
tup1[0]
1
tup1[1:5]
(2,3,4,5)
阅读全文
0 0
- Python3元组
- Python3元组
- Python3基础-元组
- python010 Python3 元组
- 【Python】Python3 元组
- Python3 元组
- Python3 元组
- python3-元组、列表、字典
- Python3 元组(tuple)
- python3入门之列表和元组
- Python3.0+学习记录-元组
- python3学习--3列表与元组
- Python3之for循环、元组、字典
- python3 数据类型之 列表、字典、元组
- Python3之元类
- python3之python的核心数据类型(元组)
- Python3.2官方文档教程---元组与序列
- python3的列表、元组、集合、字典操作
- w和dbm互换
- 单链表常见笔试面试题总结
- php url地址栏传中文乱码解决方法
- Number Sequence(规律)
- Scala——字符串
- Python3元组
- ThinkPHP之__construct()和__initialize()
- gym/100812E World of Knights struct vector< pair<ll,ll> > s;
- 集群的分类以及与分布式的区别
- PL/SQL流程控制语句------if语句例子
- spring boot: javax/annotation/ManagedBean : Unsupported major.minor version 51.0
- Hibernate操作级联删除细节
- 回调函数的使用示例
- 字串和