test3.py 88 B

12345678
  1. class Test:
  2. def foo(self):
  3. print('hello')
  4. t = Test()
  5. fo = t.foo
  6. t.fn = fo