元组的使用
来源:互联网 发布:google js api 定位 编辑:程序博客网 时间:2024/04/30 01:20
元组是不可变类型
scala> val pair=(99,"erewe",List(1,2))
pair: (Int, String, List[Int]) = (99,erewe,List(1, 2))scala> pair._1
res7: Int = 99
scala> pair._2
res8: String = erewe
scala> pair._3
res9: List[Int] = List(1, 2)
0 0
- 元组的使用
- swift 元组的使用
- Java 泛型 元组的使用
- python学习8:元组的使用
- Python列表和元组的使用
- 6、Swift元组的使用
- 15.4.5 简化元组的使用
- python中的列表、元组的使用
- Swift元组的创建--使用
- Random方法,列表元组的使用
- 友元的使用
- 元文件的使用
- 逆元的使用
- 元数据的使用
- Python 使用元组
- c++ 元组使用
- 友元函数的使用
- 友元函数的使用
- C语言关键字
- 【Codeforces316D3】【CF316D3】PE Lesson
- 远程调用的几种方式
- FP树挖掘算法实现
- 博为峰JavaEE技术文章 ——MyBatis Mapper Select
- 元组的使用
- PAT甲级1033
- 评委打分
- vpn
- java发送http的get、post请求
- poj 1753 Flip Game(枚举,dfs)
- Social Engineering_doucuments
- 数据库优化之泛泛而谈
- memcache与mysql数据库同步