最直观普遍的例子:

 

def foo(): 
       print "foo" 
  
  f = foo 
  f()

函数指针的声明和普通变量的声明基本一致,由于Python是弱类型的脚本语言,因此不需要做大篇幅的声明和限制