The invention relates to a preparation method of a Pt3Ni@PtNi2 core-shell structure nanowire. The method comprises the steps that platinum bis(acetylacetonate), nickel acetylacetonate, glucose and cetyltrimethylammonium chloride are added into 5 ml of oil-ammonia for dissolving, the solution is subjected to ultrasonic treatment in an ultrasonic machine to be mixed to be uniform, the mixed solution reacts in an oil bath at the temperature of 200-220 DEG C, an oil bath reaction product is cleaned, and the core-shell structure nanowire is obtained. According to the method, the defects that a traditional imine preparation method is tedious in step, the reaction condition is strict, and the large-scale production cost is high are overcome. According to the core-shell structure nanowire, the catalyst generation method is simple, the catalytic effect is god, and the selectivity is high. A catalytic reaction can be conducted at room temperature and completed at one step, the stability is good, the defects that traditional distillation, reflux and other methods have tedious steps and are high in cost are overcome, the synthesized catalyst can generate aminobenzene by conducting addition on nitrobenzene through hydrogen, the phenomenon that imine is subjected to hydrogenation to generate amine is not likely to occur, and the excellent selectivity of the catalyst on hydrogen addition is embodied.