This topic created in 3495 days ago, the information mentioned may be changed or developed.
4 replies • 2017-04-01 10:30:34 +08:00
 |
|
2
z4none Apr 1, 2017 via Android
split join
|
 |
|
3
LichMscy Apr 1, 2017
m = re.findall('[^\s]+', inputStr, re.S) n = ''.join(m)
|
 |
|
4
coolair Apr 1, 2017
import re pat = re.compile(r'\s+') s = ' \t foo \t bar \t ' print pat.sub('', s)
|