A locking mechanism for a battery pack, the locking mechanism comprises: a lock base, the lock base is provided with an opening and a cavity extending from the opening, the opening is used for allowing a lock shaft mounted on the battery pack to enter the cavity; a lock tongue, the lock tongue is rotatable relative to the lock base so as to shift between an unlocked state and a locked state, and when the lock tongue is in the locked state, the lock tongue is able to stop the lock shaft from leaving the cavity via the opening; and a resetting part, the resetting part is provided on the lock base and acts on the lock tongue, the resetting part is capable of producing a flexible distension and used to cause the lock tongue to rotate in a locking direction so as to reset from the unlocked state to the locked state; the lock base is further provided with an unlocking hole, the locking mechanism further comprises an unlocking component, and one end of the unlocking component is in contact with the lock tongue, the unlocking component is capable of acting on the lock tongue to cause the lock tongue to rotate in an unlocking direction to change from the locked state to the unlocked state; characterized in that, the unlocking component is provided in the unlocking hole, the unlocking component comprises an unlocking spring, and an unlocking head and an unlocking rod connected to each other, the unlocking hole is a stepped hole, and a stepped part is provided within the unlocking hole, the inner diameter of the inner end of the unlocking hole is smaller than the inner diameter of the outer end of the unlocking hole, the unlocking spring is at least partially located within the unlocking hole, and two ends of the unlocking spring respectively abut against the unlocking head and the stepped part. a lock base, the lock base is provided with an opening and a cavity extending from the opening, the opening is used for allowing a lock shaft mounted on the battery pack to enter the cavity; a lock tongue, the lock tongue is rotatable relative to the lock base so as to shift between an unlocked state and a locked state, and when the lock tongue is in the locked state, the lock tongue is able to stop the lock shaft from leaving the cavity via the opening; and a resetting part, the resetting part is provided on the lock base and acts on the lock tongue, the resetting part is capable of producing a flexible distension and used to cause the lock tongue to rotate in a locking direction so as to reset from the unlocked state to the locked state; the lock base is further provided with an unlocking hole, the locking mechanism further comprises an unlocking component, and one end of the unlocking component is in contact with the lock tongue, the unlocking component is capable of acting on the lock tongue to cause the lock tongue to rotate in an unlocking direction to change from the locked state to the unlocked state; characterized in that, the unlocking component is provided in the unlocking hole, the unlocking component comprises an unlocking spring, and an unlocking head and an unlocking rod connected to each other, the unlocking hole is a stepped hole, and a stepped part is provided within the unlocking hole, the inner diameter of the inner end of the unlocking hole is smaller than the inner diameter of the outer end of the unlocking hole, the unlocking spring is at least partially located within the unlocking hole, and two ends of the unlocking spring respectively abut against the unlocking head and the stepped part.