我有Python中的字符串:如何從字符串中刪除標有特殊字符的子字符串?
Tt = "This is a <\"string\">string, It should be <\"changed\">changed to <\"a\">a nummber."
print Tt
'This is a <"string">string, It should be <"changed">changed to <"a">a nummber.'
你看,有些話在這部分<\" \">.
我的問題是,如何刪除那些重複的部分(與指定字符分隔)重複?
結果應該是這樣的:
'This is a string, It should be changed to a nummber.'
向我們展示您的代碼。 – Julien
與我們分享您已經嘗試的方法是表達您面臨的困難的好方法。我們可以解決您嘗試中具有問題的特定領域。 – Lix
加油!你可以想出一個更好的標題。 –