DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python make string one line
s = "a b c d " t = str.join(" ", s.splitlines()) #output "a b c d"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#string
#line
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit