How to use the strip () method to remove spaces in Python
Editor to share with you how to use the strip () method to remove spaces in Python, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Strip () method
Remove the space at the beginning or end of the string
> a = "a b c" > a.strip ()'a b c'Python is mainly used in: 1, Web development; 2, data science research; 3, web crawler; 4, embedded application development; 5, game development; 6, desktop application development.
The above is all the content of the article "how to use the strip () method to remove spaces in Python". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!