Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding:UTF-8 -*-
- """
- Python function as a function argument
- Using a function as an argument to another funcion
- Usando uma função como argumento para outra função
- REF: https://stackoverflow.com/questions/6289646/python-function-as-a-function-argument
- """
- def funcParent(FunChild, t):
- print ('funcParent')
- FunChild(*t)
- def FunCh(a,b,c):
- print ("param 1: '%s' param 2 '%s' param 3 '%s:%s'"%(a,b, c, type(c)))
- funcParent(FunCh, ("hello","gnao", 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement