結果 : how to use hasattr in python