A stylus comprising a barrel assembly and a tip assembly, wherein the tip assembly is located at an end of the barrel assembly and a gap is present between the tip assembly and the barrel assembly; and further comprising a signal board, a mainshaft, and a pressure sensor assembly, wherein the signal board extends into the tip assembly; wherein the pressure sensor assembly is fixed in the barrel assembly and one end of the mainshaft is connected to the tip assembly,; and the pressure sensor assembly comprises a pressure sensor and an electrical connecting member, characterized in that the stylus further comprises a first electrode, a second electrode, a control board, and a flexible electrical connection assembly, wherein one end of the first electrode is located at a writing end of the tip assembly, the signal board connects to the other end of the first electrode, and the second electrode fits around the signal board and is electrically connected to the signal board; wherein the other end of the mainshaft touches the pressure sensor assembly, the pressure sensor assembly is electrically connected to the control board, one end of the flexible electrical connection assembly is connected to the signal board, the other end of the flexible electrical connection assembly is electrically connected to the control board, and a bending part is present between the two ends of the flexible electrical connection assembly; wherein one side surface of the pressure sensor abuts against an end of the mainshaft, the electrical connecting member is connected to the other side surface of the pressure sensor, and the electrical connecting member is electrically connected to the control board; the stylus further comprises a fixed bracket, wherein the fixed bracket is fixed in the barrel assembly and the fixed bracket comprises a main body with an accommodating chamber, an opening of the accommodating chamber facing the mainshaft and the pressure sensor assembly being located in the accommodating chamber; and the flexible electrical connection assembly comprises a flexible circuit board and an electrical connector, with the electrical connector connected to an end of the flexible circuit board facing towards the control board and the bending part located on the flexible circuit board. further comprising a signal board, a mainshaft, and a pressure sensor assembly, wherein the signal board extends into the tip assembly; wherein the pressure sensor assembly is fixed in the barrel assembly and one end of the mainshaft is connected to the tip assembly,; and the pressure sensor assembly comprises a pressure sensor and an electrical connecting member, characterized in that the stylus further comprises a first electrode, a second electrode, a control board, and a flexible electrical connection assembly, wherein one end of the first electrode is located at a writing end of the tip assembly, the signal board connects to the other end of the first electrode, and the second electrode fits around the signal board and is electrically connected to the signal board; wherein the other end of the mainshaft touches the pressure sensor assembly, the pressure sensor assembly is electrically connected to the control board, one end of the flexible electrical connection assembly is connected to the signal board, the other end of the flexible electrical connection assembly is electrically connected to the control board, and a bending part is present between the two ends of the flexible electrical connection assembly; wherein one side surface of the pressure sensor abuts against an end of the mainshaft, the electrical connecting member is connected to the other side surface of the pressure sensor, and the electrical connecting member is electrically connected to the control board; the stylus further comprises a fixed bracket, wherein the fixed bracket is fixed in the barrel assembly and the fixed bracket comprises a main body with an accommodating chamber, an opening of the accommodating chamber facing the mainshaft and the pressure sensor assembly being located in the accommodating chamber; and the flexible electrical connection assembly comprises a flexible circuit board and an electrical connector, with the electrical connector connected to an end of the flexible circuit board facing towards the control board and the bending part located on the flexible circuit board.