結果 : how to get substring before character in python