Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to preserve white space when joining an array python

>>> re.split(r'(s+)', your_arr_name)
['BBP1', '   ', '0.000000', '  ', '-0.150000', '    ', '2.033000', '  ', '0.00', ' ', '-0.150', '   ', '1.77']
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #preserve #white #space #joining #array #python
ADD COMMENT
Topic
Name
7+6 =