标签:
//: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" // 断言, 必须符合某个条件,程序才能继续运行下去 // 可以看做是一个底线要求 var age = 19; assert(age > 18, "年龄必须大于18岁才能继续");
Swift - 10 - assert(断言)
原文地址:http://www.cnblogs.com/Rinpe/p/5050624.html