擅长:python、mysql、java
<p><code>dummy.func1</code>是<a href="https://stackoverflow.com/questions/114214/class-method-differences-in-python-bound-unbound-and-static">unbound</a>,因此只需要一个显式的<code>self</code>参数:</p>
<pre><code>def greet(f,name):
d = dummy()
f(d, name)
greet(dummy.func1,'Bala')
</code></pre>