摘要: 背景 在使用数组(swift)的编码过程中,不让程序崩溃是基本的要求,特别是在团队合作中时。 如果直接下面代码,会出现什么结果: private func collectionSafeBoundsTest1() { let arr = [0, 1, 2, 3] print(arr[100]) } 运 阅读全文
posted @ 2023-01-31 22:46 Dast1 阅读(108) 评论(0) 推荐(0) 编辑