案例:class person:name="四川二流子"def say(self):print("中文")ps=person()print(hasattr(ps,"say"))print(hasattr(ps,"say"))(二)getattr函數獲取某個 ...
確定! 回上一頁