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

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -