Which of the following versions of Yuan Mei's Scholar Woods Cai Yu is correct?

Translate the original text into

There used to be a house outside Beiguan Gate in Hangzhou, which was haunted by ghosts. People are afraid to live, so the rooms are locked tightly. At this moment, a scholar named Cai came and said that he would buy the house. Everyone was worried about him, but he insisted on buying the house. After he signed the contract with the owner, no one in the family dared to live in it. So Cai Sheng was the only one who opened the door, entered the back of the house, lit the lamp and sat down. That night, a woman walked slowly to Cai Sheng, bowed to Cai Sheng, hung a rope on the roof beam and craned her neck to drill into the rope circle, but Cai Sheng was not afraid at all. The female ghost can only hang one more rope ring on the roof beam to prepare for Cai Sheng. Cai Sheng put one foot into the rope loop, and the female ghost immediately said, "You are wrong!" " "Cai Sheng said with a smile:" You are wrong today, and I am not wrong! "Female the ghost laughed, kneeling on the ground and kowtowing. From then on, there were no ghosts in this room, and Cai Sheng was admitted to Jinshi. Some people say that this Cai Sheng is Cai's political envoy.

From the full text, the second one is correct. Since Cai Shusheng was bent on taking the exam and finally got in, it proved that he was learned, so there was no hope in life.