The invention discloses a three-dimensional (3D) printer, the 3D printer comprises an X-Y working platform, spray heads installed on the X-Y working platform, light-emitting diode (LED) ultraviolet (UV) light sources, moving supporting frames, a base, fixed supporting frames, a supporting platform and UV resin material-feeding units, wherein the fixed supporting frames and the supporting platform are installed on the base, and the spray heads are connected with the UV resin material-feeding units. Through use of the 3D printer, one-way single-layer printing and one-way multi-layer printing can be carried out, multi-material printing, color printing, coating printing and other effects can be realized, and the printing efficiency is improved by times compared with that of the traditional 3D printers.