func foo()->Int { print(Please press a number from 1 to 3) while true { if let l = readLine(), let i = Int(l) { if (1..<4).contains(i) { return i } else ...
確定! 回上一頁