1. scala> val tuple1 = (1, 2, 3.0F, "heihei", 4)
    2. tuple1: (Int, Int, Float, String, Int) = (1,2,3.0,heihei,4)
    3. scala> println(tuple1._4)
    4. heihei

    tuple的遍历

    1. scala> for(e <- tuple1.productIterator) {
    2. | println(e)
    3. | }