#map通过读入的函数(这里是lambda函数)来操作数据
def test_func_map():
re = map((lambda x: x+3), [1, 2, 3, 4])
...print re
def testA(a, b, **kargs):
print a+b
print "testA: %s" % kargs
#函数作为参数传递
def...test_func(func, a, b, **kargs):
func(a, b)
print "test_func: %s" % kargs
#函数作为参数传递
def...testA(1, 2, bb="bb")), cc="cc")
#test_func_map()
#test_func_getattr()
#getattr方法,传入参数是对象和该对象的函数或者属性的名字...func()
print getattr(obj, "aa") #完成对象的反射
print obj.aa
#callable方法,如果传入的参数是可以调用的函数,