我試圖找出如何做到這一點的一部分:改變一個單詞
>>>sentence = "There's something right there."
>>>change_s(sentence)
['there', 'his', 'something', 'right', 'there.']
>>>sentence = "it's Patrick's car."
>>>change_s(sentence)
['it', 'his', 'Patrick', 'his', 'car.']
所以基本上我想改變「的」給‘他’(即使它在語法上不正確)並把這些單詞放在一個列表中。
你知道「it his」!=「it's」,對嗎? – jdotjdot