I am to learn python, I have a problem to deal with
Following example:
string1 = "Galaxy S S10 Lite"
string2 = "Galaxy Note Note 10 Plus"
How can I remove the second two duplicates "S" and "S" or "Note" and "Note"?
The result should look like
string1a = "Galaxy S10 Lite"
string2a = "Galaxy Note 10 Plus"
how to only the second duplicates should be removed and the sequence of the words should not be changed!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…