如果將「取代字串」設為空字串(""),其效果就是移除字串中的「被取代字串」,例如: str1 = "I love python." print(str1.replace("o","")) #I lve pythn. ,移除所有 ...
確定! 回上一頁