結果 : python test if object attribute exists