basically yes
>>> s = 'foo \t bar'.split() >>> s ['foo', 'bar'] >>> '_'.join(s) 'foo_bar'
Recommended Tutorials:
replace white space with a string, is this pythonic?
|
|
Messages In This Thread |
replace white space with a string, is this pythonic? - by Skaperen - Jun-18-2019, 11:08 PM
RE: replace white space with a string, is this pythonic? - by metulburr - Jun-18-2019, 11:36 PM
|