Swift 在運行時為拋出,捕獲,傳播和操作可恢復錯誤提供了一流的支持。 ... defer { close(file) } while let line=try file.readline() { // Work with the file. } ...
確定! 回上一頁