博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
前向引用之'函数即变量'
阅读量:4655 次
发布时间:2019-06-09

本文共 355 字,大约阅读时间需要 1 分钟。

def action():    print 'in the action'    logger()action()报错NameError: global name 'logger' is not defineddef logger():    print 'in the logger'def action():    print 'in the action'    logger() action() def action():    print 'in the action'    logger()def logger():    print 'in the logger' action()

 

转载于:https://www.cnblogs.com/hui147258/p/10855732.html

你可能感兴趣的文章
ArcEngine开发之自定义工具
查看>>
SQL视频总结
查看>>
P4878 道路修建-美国
查看>>
dp练习
查看>>
vim
查看>>
maze_travel的隐私声明
查看>>
对正则表达式又重新学了一遍,笔记方便以后查阅
查看>>
UIKit应用 - Swift 版本: 3.让UITableViewCell的背景色渐变
查看>>
Java反射
查看>>
building tool
查看>>
JS中for循环输出三角形
查看>>
字节对齐2
查看>>
与Win8之磁盘活动时间100%斗争心得
查看>>
Matrix: android 中的Matrix (android.graphics.Matrix) (转)
查看>>
Android中处理崩溃异常
查看>>
Day7—socket进阶
查看>>
只读数据文件损坏恢复
查看>>
转过来的,可以看下
查看>>
windows搭建SVN服务MD版
查看>>
Java私塾的一些基础练习题(一)
查看>>