Kotlin 中有標準庫函式 readLine() ,用於從標準輸入流讀取字串輸入行。 它返回讀取的行或 null 。下面來看一個例子: fun main(args: Array<String>) { println("輸入 ...
確定! 回上一頁