結果 : python how to check object has attribute