Python 传递函数名2023-11-21 17:25:40 def resolve(fileObject,lineHandler):for line in fileObject :lineHandler(line) def lineHandlerFun(line) :print line file = open(‘C:\Windows\System32\drivers\etc\hosts‘) resolve(file,lineHandlerFun)Python 传递函数名,布布扣,bubuko.com Python 传递函数名上一篇:python 中sys.stdout.write 和 print >> sys.stdout的区别(转)下一篇:深入理解C语言----动态库 & 静态库 & 链接