Classical solution to 1D viscous polytropic perfect fluids with constant diffusion coefficients and vacuum