The invention belongs to the technical field of nucleic acid probes and provides an oligonucleotide probe. The probe consists of a sequence complementary to the target sequence, a G-quadruplex blocking sequence and a G-quadruplex sequence from the 5'-3' end. The G-quadruplex blocking sequence is complementary to part of the G-quadruplex sequence, forming a stable hairpin structure, and enclosing the G-quadruplex sequence inside the probe. When detecting target molecules, the probe first recognizes the target sequence and forms a double-stranded structure, then under the digestion of Lambda exonuclease, the hairpin structure is opened, the G-quadruplex sequence is released, and the cycle repeats, and finally the trace target Molecular information is converted into a large number of G-quadruplex sequences, and then converted into readable optical, electrical and other signals through the G-quadruplex sequences. The probe has the advantages of good stability, low cost, easy preparation, high throughput, high sensitivity and specificity, can realize the direct detection of single-stranded nucleic acid, and can also detect double-stranded nucleic acid and other molecules for indirect detection.