assert断言 if not condition crash program #如果不符合条件,让项目在错误条件下立即崩溃胜过项目运行起来再崩溃 不符合条件,程序立即崩溃。 加入断言语句:年龄必须是真实的。