結果 : select string before a specific character python