Swift 断言

assert(条件,"输出信息");
如:
let age=-1;
assert(age>=0,"age要大于0");

原文地址:https://www.cnblogs.com/stareblankly/p/4987652.html