>>> str = 'a|b|c|d|e' >>> str.split("|") ['a', 'b', 'c', 'd', 'e'] >>> list = ['a', 'b', 'c', 'd', 'e'] >>> "|".join(list) 'a|b|c|d|e'