Python,元组
来源:互联网 发布:电子杂志制作软件下载 编辑:程序博客网 时间:2024/06/09 18:08
1.元组:不可改变的序列 用()括起来
print(3,)(3,)
print(3*(3+3,))(18,18,18)
2.tuple()--把一个序列作为参数转化为元组,如果参数是元组,这返回该元组
print(tuple([1,2,3]))(1,2,3)print(tuple("abc"))("a","b","c")
阅读全文
0 0
- Python 元组
- Python 使用元组
- Python组元陷阱
- python元组学习
- Python:元组函数
- Python 元组 小结
- PYthon中的元组
- python学习-元组
- python 元组
- Python 元组
- python 元组
- python 元组
- Python元组类型
- Python 元组
- python元组
- Python元组
- python--列表,元组
- Python入门教程--元组
- es6 箭头函数
- 设计模式的艺术之道--外观模式
- springmvc日期转换
- java构造方法 静态变量小知识
- CSS(二)
- Python,元组
- 279-perfect squares
- java第五篇java反射的学习
- activiti HelloWorld 入门demo
- static与C#中的static
- 网络编程预习一
- android studio 3中如何使用recyclerview布局
- python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory
- 浅谈Linux服务器问题解决