demo_ref_string_split3.py:
txt = "apple#banana#cherry#orange" x = txt.split("#") print(x)
➜ begtut>python demo_string_split3.py
['apple', 'banana', 'cherry', 'orange']