To the aim of reproducing the oxygen abundances and gradients observed in the disk of our Galaxy and four nearby spirals (M31, M33, M83, and M101), we have computed numerical models of galactic evolution assuming only two free parameters: the infall of gas from outside the disk and the law of star formation (e.g. proportional to some power of the gas density, decreasing with time, constant, etc.).