var List: TStringList; procedure TForm1.FormCreate(Sender: TObject); begin // Assert(Assigned(List)); //第二个参数默认 'Assertion failure' Assert(Assigned(List), 'List 对象没有建立'); end;