如何在Swift 4.1.2中从键盘读取内容?

时间:2018-07-14 13:37:38

标签: swift swift-playground xcode9.1

这不起作用

let input = readLine()
if let input = input {
    print(input) 
}

输入为nil,我正在操场上使用Xcode 9.1

0 个答案:

没有答案