The kit utilizes a real-time fluorescent PCR detection technology, and adopts a pair of specific primers of an o-type antigen of escherichia coli, a pair of specific fluorescent probes and a pair of specific primers of a flagella antigen and a specific fluorescent probe to realize qualitative detection of escherichia coli (O157: H7) in samples of food, digests, feces, cosmetics and the like.