I'm using an input function where I want to convert any spaces in the input to +
's. So for example, if the user inputs iphone 7 black
, I want to convert this to iphone+7+black
.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Just use
replace
: