An integrally-formed inductor, comprising: a magnetic core comprising a first surface, a second surface, and a side surface, the first surface and the second surface being disposed opposite to each other, and the side surface being disposed between the first surface and the second surface; and a first winding comprising a first longitudinal portion, a second longitudinal portion, and a first connecting portion being provided between the first longitudinal portion and the second longitudinal portion; wherein the first longitudinal portion extends to the first surface, and a projection of the first longitudinal portion on the first surface is within a range of the magnetic core, and the first longitudinal portion forms a first pin on the first surface; the second longitudinal portion extends to a plane where the second surface is positioned, and forms a second pin on the plane where the second surface is positioned; and the first winding and the magnetic core are integrally pressed by a mold to form the inductor, wherein the inductor further comprises: a second winding comprising a third longitudinal portion, a fourth longitudinal portion, and a second connecting portion being provided between the third longitudinal portion and the fourth longitudinal portion, wherein the third longitudinal portion extends to the first surface, and forms a third pin on the first surface, and the fourth longitudinal portion extends to a plane where the second surface is positioned, and forms a fourth pin on the plane where the second surface is positioned, characterized in that a projection length of the first winding in a horizontal direction is greater than a projection length of the first winding in a height direction of the magnetic core, the horizontal direction is perpendicular to the height direction of the magnetic core, and the height direction refers to a direction from the first surface to the second surface of the magnetic core. a magnetic core comprising a first surface, a second surface, and a side surface, the first surface and the second surface being disposed opposite to each other, and the side surface being disposed between the first surface and the second surface; and a first winding comprising a first longitudinal portion, a second longitudinal portion, and a first connecting portion being provided between the first longitudinal portion and the second longitudinal portion; wherein the first longitudinal portion extends to the first surface, and a projection of the first longitudinal portion on the first surface is within a range of the magnetic core, and the first longitudinal portion forms a first pin on the first surface; the second longitudinal portion extends to a plane where the second surface is positioned, and forms a second pin on the plane where the second surface is positioned; and the first winding and the magnetic core are integrally pressed by a mold to form the inductor, wherein the inductor further comprises: a second winding comprising a third longitudinal portion, a fourth longitudinal portion, and a second connecting portion being provided between the third longitudinal portion and the fourth longitudinal portion, wherein the third longitudinal portion extends to the first surface, and forms a third pin on the first surface, and the fourth longitudinal portion extends to a plane where the second surface is positioned, and forms a fourth pin on the plane where the second surface is positioned, characterized in that a projection length of the first winding in a horizontal direction is greater than a projection length of the first winding in a height direction of the magnetic core, the horizontal direction is perpendicular to the height direction of the magnetic core, and the height direction refers to a direction from the first surface to the second surface of the magnetic core. a second winding comprising a third longitudinal portion, a fourth longitudinal portion, and a second connecting portion being provided between the third longitudinal portion and the fourth longitudinal portion, wherein the third longitudinal portion extends to the first surface, and forms a third pin on the first surface, and the fourth longitudinal portion extends to a plane where the second surface is positioned, and forms a fourth pin on the plane where the second surface is positioned, characterized in that a projection length of the first winding in a horizontal direction is greater than a projection length of the first winding in a height direction of the magnetic core, the horizontal direction is perpendicular to the height direction of the magnetic core, and the height direction refers to a direction from the first surface to the second surface of the magnetic core.