【简答题】
val poemArray:Array
= arrayOf("朝辞白帝彩云间", "千里江陵一日还", "两岸猿声啼不住", "轻舟已过万重山") var poem:String="" for (i in poemArray.i_______) { if (i%2 == 0) { poem = "$poem${poemArray[i]}+$i,\n" } else { poem = "$poem${poemArray[i]}+$i。\n" } } println( poem) }
参考答案:
参考解析:
举一反三