The invention provides a novel print recognition based metronidazole electrochemical sensor, a preparation method and an application. The preparation method of the sensor comprises following steps: graphite powder and paraffin oil are uniformly mixed to form carbon paste, a carbon paste electrode is prepared and put in a sulfuric acid solution for potential scan round, and a conductive film carbon paste electrode is prepared; sol proportionally prepared from APTMS (aminopropyl trimethoxysilane), TEOS (tetraethoxysilane), 2-ethoxyethanol, a metronidazole containing 2-ethoxyethanol solution, an NaOH solution and deionized water is dispensed on the surface of the conductive film carbon paste electrode dropwise, a heterogeneous double-layered-based molecularly imprinted polymer film modified carbon paste electrode is obtained and connected with an electrochemical device, and the sensor is assembled. The sensor has enhanced print recognition capacity and wide applicability, has the characteristics of high sensitivity, good selectivity, wide linear range, high precision and accuracy, low detection cost, environment-friendliness, portability, suitability for field monitoring and the like, further, the preparation process is simple, the cost is low, and the service life is long.