python 2.7 - How to split a string over a specific character? -
i have date in form of string, , looks this:
"21.07. - 10.08." i wondering how split 2 2 strings, , lose " - ".
something make string1 = "21.07." , string2 = "10.08."
string1, string2 = '21.07. - 10.08.'.split(' - ')
Comments
Post a Comment