A method and system for acquiring the attitudes of an acetabulum and a femoral head in real time during an artificial hip joint replacement procedure; during hip joint replacement, a pressure sensor and / or a touch sensor are disposed at each pressure point concerned for a femoral head prosthesis test mould, forming a sensor array (1); the sensor array (1) acquires the contact and stress conditions between the femoral head prosthesis test mould and the acetabulum, and sends out a signal; and a receiving terminal receives and displays the signal on a display module, and acquires the simulated attitudes of the acetabulum and the femoral head. The system comprises a sensor array (1), a necessary peripheral circuit, and a signal receiving and display device for receiving and displaying the signal sent by the peripheral circuit. The present invention can accurately simulate the presented attitude of the femoral head prosthesis during hip joint replacement procedure, so that a doctor can intuitively see the position and movement condition of the femoral head prosthesis during the procedure, thus improving the success rate and curative effect of the hip joint replacement procedure.