# -*- coding:utf-8 -*- # -*- coding: UTF-8 -*- #绑定关系 class Foo: def func(self): # pass f1 = Foo() print(f1) print(Foo.func) print(f1.func) #把f1传给func的self参数