python基礎——反射和異常

反射:通俗的說就是你給一個字符串,我就能匹配到和字符串相同的函數進行調用python 反射舉例說明web def bulk(self): print("%s is yelling……"%self.name) class Dog(object): def __init__(self,name): self.name=name def eat(self,foo
相關文章
相關標籤/搜索