The invention provides a charging gun which comprises a shell, the shell is provided with a bayonet socket, a main cavity and a cable chamber, the shell is further provided with an unlocking swing rod, one end, facing the front end of the shell, of the unlocking swing rod is provided with a lock hook, the other end of the unlocking swing rod is provided with a button, the bayonet socket is provided with two inserting columns which are parallel to each other and arranged in a spaced mode, and the main cavity is provided with an opening. The plugging column is provided with a locking section, a rotation section and a wiring driving section, the section of the locking section is polygonal and is spirally twisted towards the circumferential direction of the plugging column, meanwhile, the profile of the section of one side, close to the front end of the locking section, of the locking section is reduced, the rotation section is in running fit with the plugging seat, and the wiring driving section is located in the main cavity; the outer wall of the wiring driving section is provided with gear teeth, and the rear end face is provided with a first wiring hole; a rack meshed with the two inserting columns is arranged between the gear teeth of the wiring driving sections of the two inserting columns, and the rack is matched with the unlocking swing rod. The connector has the advantages that connection is reliable, abrasion and plugging resistance are effectively reduced, and meanwhile connection reliability is guaranteed.