Remove character in list Python · Removing Spaces from a String. s = ' 1 2 3 4 ' print(s.replace(' ', '')) # 1234 print(s.translate({ord(i): None for i in ' '})) ...
確定! 回上一頁