Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

remover espaços string python

string = "    *****    "

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

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

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

PREVIOUS NEXT
Code Example
Python :: python histogram as a dictionary 
Python :: discord.py owner only commands 
Python :: usong brave browser pyhton 
Python :: python pause 
Python :: networkx create graph from dataframe 
Python :: `distplot` is a deprecated function and will be removed in a future version 
Python :: python how to return max num index 
Python :: discord.py commands.group 
Python :: raw string 
Python :: python get size of file 
Python :: longest substring without repeating characters python 
Python :: segregate list in even and odd numbers python 
Python :: chrome selenium python 
Python :: how to change the rate of speech in pyttsx3 
Python :: python for with iterator index 
Python :: how to move columns in a dataframen in python 
Python :: mongodb check if substring in string 
Python :: split multiple times 
Python :: create spark dataframe in python 
Python :: print items in object python 
Python :: reverse shell python 
Python :: How to find the three largest values of an array efficiently, in Python? 
Python :: django expressionwrapper example 
Python :: python get everything between two characters 
Python :: python datetime subtract seconds 
Python :: read binary file python 
Python :: add column names to dataframe pandas 
Python :: get local python api image url 
Python :: python async threading 
Python :: check if number in range 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =