A dual-purpose electric scooter , comprising a deck assembly; a handlebar assembly detachably connected with the deck assembly; two front wheels installed on a bottom side of the deck assembly; and a back wheel installed on the bottom side of the deck assembly, and the back wheel being a motor integrated wheel and configured to drive the electric scooter move, wherein the deck assembly comprises a first mounting portion and a first fastener located at a side wall of the first mounting portion , the handlebar assembly comprises a handle , an upright rod and second fastener , an end of the upright rod is connected with the handle , the second fastener is disposed at the other end of the upright rod , when the other end of the upright rod is disposed in the first mounting portion and the first fastener is fixed with the second fastener , the handlebar assembly is connected with the deck assembly, when the first fastener and the second fastener separate from each other, the other end of the upright rod is able to be separated from the deck assembly, wherein the first fastener is a first notch located at the side wall of the first mounting portion , the second fastener comprises a first elastic portion located in the other end of the upright rod and a first protrusion connected with the first elastic portion , when the first protrusion is pressed by a first external force, the first elastic portion is compressed to pull the first protrusion into the upright rod and separate from the first notch, when the first external force is removed, a first elastic force released by the first elastic portion drives the first protrusion protrude from the upright rod so as to fix into the first notch. a deck assembly; a handlebar assembly detachably connected with the deck assembly; two front wheels installed on a bottom side of the deck assembly; and a back wheel installed on the bottom side of the deck assembly, and the back wheel being a motor integrated wheel and configured to drive the electric scooter move, wherein the deck assembly comprises a first mounting portion and a first fastener located at a side wall of the first mounting portion , the handlebar assembly comprises a handle , an upright rod and second fastener , an end of the upright rod is connected with the handle , the second fastener is disposed at the other end of the upright rod , when the other end of the upright rod is disposed in the first mounting portion and the first fastener is fixed with the second fastener , the handlebar assembly is connected with the deck assembly, when the first fastener and the second fastener separate from each other, the other end of the upright rod is able to be separated from the deck assembly, wherein the first fastener is a first notch located at the side wall of the first mounting portion , the second fastener comprises a first elastic portion located in the other end of the upright rod and a first protrusion connected with the first elastic portion , when the first protrusion is pressed by a first external force, the first elastic portion is compressed to pull the first protrusion into the upright rod and separate from the first notch, when the first external force is removed, a first elastic force released by the first elastic portion drives the first protrusion protrude from the upright rod so as to fix into the first notch. <EOS>