To remove spaces from a string in Python, use the str.replace() method. For example "This is a test".replace(" ", "") returns Thisisatest.
確定! 回上一頁