The invention discloses a welding wire and welding rod core used in welding gray cast iron, which is formed by following weight proportion: C at 3.6úÑ-4.0úÑ, Si at 3.6úÑ-4.6úÑ, Mn at 0.2úÑ-0.4úÑ, Sú“0.05 úÑ, Pú“0.1úÑ, Caú“2úÑ, Ni at 0.2úÑ-1.2úÑ, Ti at 0.3úÑ-.8úÑ, Al at 0.1úÑ-0.5úÑ, Bi at 0.03úÑ-0.06úÑ, Ba at 0.01úÑ-0.03úÑ, Ce at 0.01úÑ-0.04úÑ and RE at 0.01úÑ-0.03úÑ while the other is Fe. And the welding wire and welding rod core used in welding nodular graphite cast iron, which is formed by following weight proportion: C at 3.6úÑ-4.2úÑ, Si at 3.6úÑ-4.6úÑ, Mn at 0.2úÑ-0.4úÑ, Sú“0.03 úÑ, Pú“0.06úÑ, Caú“4úÑ, Ni at 0.2úÑ-2úÑ, Ti at 0.3úÑ-1.2úÑ, Cu at 0.2úÑ-0.8úÑ, Al at 0.1úÑ-0.5úÑ, Bi at 0.01úÑ-0.06úÑ, Mg at 0.02úÑ-0.03úÑ, Ba at 0.01úÑ-0.03úÑ, Ce at 0.01úÑ-0.04úÑ and RE at 0.01úÑ-0.03úÑ while the other is Fe. The invention can realize the welding rod cooling welding or lower temperature welding, while the component, organization, property and color of welding line are the same as casting, with better process-ability and crack resistance.