結果 : find common prefix in string python