把下面的代码保存为Python程序文件并运行,输出结果为?from types import MethodType
class Test:
def func(self):
print('a')
def new_func1(self):
print('b')
def new_func2(self):
print('c')
t1 = Test ()
t1.func = MethodType (new_func1, t1)
Test.func = MethodType (new_func2, Test)
t1.func ()