摘要:
# 何为反射? # 以字符串形式去操作模块(对象)以及其中的成员方法。# 利用字符串的形式去对象中寻找操作(寻找/检查/删除/设置)成员 # hasattr() getattr() setattr() delattr() def person(): print('person') def home( 阅读全文
摘要:
练习代码: # 成员属性,分页小程序。 class pages: def __init__(self,current_page): try: p = int(current_page) except Exception as e: p = 1 self.curpage = p self.totalc 阅读全文