結果 : python check if path has extension