def main(args: Array[String]): Unit = { def sum(a:Int,b:Int,c:Int) =a+b+c val fpsum = sum _ val fpsum2 = fpsum(1,_:Int,3) println(fpsum2(2)) val fppsum = sum(_,_,_) //必需要在 sum 後用下劃線或 sum(_,_,_),不能只是 sum val fppsum2 = fppsum(1,_:Int,3) println(fppsum2(2)) }