Using replace() method. This function will remove whitespaces between words too. test_str = "Python code to remove whitespace" print(test_str.
確定! 回上一頁