class A: def register(self): print("注册") def login(self): print('登录') def func1(self): pass def func2(self): pass class B: def register(self): print("注册") def login(self): print("登录") def func3(self): pass