💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ scala> val tuple1 = (1, 2, 3.0F, "heihei", 4) tuple1: (Int, Int, Float, String, Int) = (1,2,3.0,heihei,4) scala> println(tuple1._4) heihei ~~~ tuple的遍历 ~~~ scala> for(e <- tuple1.productIterator) { | println(e) | } ~~~