A spray gun, comprising: a spray gun housing and an operating handle, the operating handle being provided on the spray gun housing to control connection and disconnection of a fluid in the spray gun by pulling the operating handle; wherein the spray gun further comprises: a spray gun main body; a sealing assembly, at least a part of the sealing assembly being movably provided in the spray gun main body of the spray gun to control the connection and disconnection of a fluid in the spray gun main body, and the operating handle being connected with the sealing assembly, so as to drive the sealing assembly to move by pulling the operating handle, so that the connection and disconnection of the fluid in the spray gun main body is controlled; and a locking switch, mounted on the spray gun housing in a position-adjustable manner, the locking switch being located on one side of the operating handle and cooperating with the operating handle in a limiting manner, so as to prevent the operating handle from being pulled when the spray gun is in a non-operating state; wherein the sealing assembly comprises a partition flange used for cutting off a fluid passage in the spray gun main body and an elastic member connected with the partition flange; and the elastic member is provided in a retractable way to press the partition flange to a position that cuts off the fluid passage of the spray gun main body; characterized in that: wherein the locking switch is provided with a locking portion; the locking switch is movably provided along a direction close to or away from the operating handle, so that the locking portion is abutted against the operating handle, or the locking portion avoids the operating handle to make the operating handle move; wherein the locking switch is provided with a locking position used for limiting the operating handle and an avoiding position used for avoiding the operating handle; the locking switch is movably provided between the locking position and the avoiding position; the spray gun further comprises a cushion block, the cushion block being mounted on the spray gun housing; when the locking switching is located at the locking position, the cushion block is located on a side, far away from the operating handle, of the locking portion and is abutted against the locking portion, so as to lock the locking switch at the locking position. a spray gun main body; a sealing assembly, at least a part of the sealing assembly being movably provided in the spray gun main body of the spray gun to control the connection and disconnection of a fluid in the spray gun main body, and the operating handle being connected with the sealing assembly, so as to drive the sealing assembly to move by pulling the operating handle, so that the connection and disconnection of the fluid in the spray gun main body is controlled; and a locking switch, mounted on the spray gun housing in a position-adjustable manner, the locking switch being located on one side of the operating handle and cooperating with the operating handle in a limiting manner, so as to prevent the operating handle from being pulled when the spray gun is in a non-operating state; wherein the sealing assembly comprises a partition flange used for cutting off a fluid passage in the spray gun main body and an elastic member connected with the partition flange; and the elastic member is provided in a retractable way to press the partition flange to a position that cuts off the fluid passage of the spray gun main body; characterized in that: wherein the locking switch is provided with a locking portion; the locking switch is movably provided along a direction close to or away from the operating handle, so that the locking portion is abutted against the operating handle, or the locking portion avoids the operating handle to make the operating handle move; wherein the locking switch is provided with a locking position used for limiting the operating handle and an avoiding position used for avoiding the operating handle; the locking switch is movably provided between the locking position and the avoiding position; the spray gun further comprises a cushion block, the cushion block being mounted on the spray gun housing; when the locking switching is located at the locking position, the cushion block is located on a side, far away from the operating handle, of the locking portion and is abutted against the locking portion, so as to lock the locking switch at the locking position.