Two coordination polymers (CPs), [Zn5(L)2(phen)5](1) and [Cd2(HL)(2,2-bpy)(H2O)3](2), were synthesized by using 2',3,3',5,5'-Diphenyl ether pentacarboxylic acid (H5L), phenanthroline (phen), and 2,2'-bipyridine (2,2'-bpy) under hydrothermal conditions. The L5- ligand adopts the μ6-к2: к2: к1: к1: к1: к1 mode in 1 and the μ5-к2: к2: к2: к2: к1 mode in 2. Sensing experiments show that 1 and 2 are fluorescence probes with high sensitivity and rapid detection of nitro explosives, antibiotics, and pesticides. In order to verify the ability of 2 to detect FLU in actual samples, we performed a spiked recovery experiment in green pepper water. The spiked recoveries were 97.77-101.18 %. Interestingly, because H5L is not completely deprotonated in 2, there is abundant hydrogen bonding, which makes the fluorescence quenching rate higher and the detection limit lower. The possible fluorescence quenching mechanism of 1 and 2 can be explained by their UV-VIS absorption spectra and orbital energy levels.