Python3 combines two lists into one dictionary.
Next: python3 map () function
1, the strip method removes spaces on both sides (beginning and end) of the string.
2. the 2.lstrip method removes the spaces on the left side of the string.
3. the 3.rstrip method removes the space on the right side of the string.
4. The space of the string replaced by the replace method is empty.
Note: The following is the specific usage of the replace method.
Old_str: the content to be replaced in the original string, new _ str: the content to be replaced by old _ str, max: the number of times of replacement, and all are replaced by default.
5. Regular matching replaces spaces
I don't need to say much about the use of regular methods here. You can check the detailed documents yourself.
If you think this article is helpful to you, you can like it.
This article is only for exchange and study, please do not use it illegally.
Just a personal opinion. If you have any ideas, please leave a message.