解:$(1)$由于火车在平直轨道上匀速行驶,所以$F=f=2000\ \mathrm {N}$,
火车在水平方向移动的距离$s=vt=20\ \mathrm {m/s}×10\ \mathrm {s}=200\ \mathrm {m}$,
牵引力做的功$W=Fs=2000\ \mathrm {N}×200\ \mathrm {m}=4×10^5\ \mathrm {J}$
$(2)$牵引力的功率$P=\frac {W}{t}=\frac {4×10^5\ \mathrm {J}}{10\ \mathrm {s}}=4×10^4\ \mathrm {W}$