Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remover espaços string python

string = "    *****    "

print(string.lstrip());
# Saída: '*****   '

print(string.rstrip());
# Saída: '   *****'

print(string.strip());
# Saída: '*****'
 
PREVIOUS NEXT
Tagged: #remover #string #python
ADD COMMENT
Topic
Name
9+6 =