def hi(name="yasoob"):
def greet():
return "now you are in the greet() function"
def welcome():
return "now you are in the welcome() function"
if name == "yasoob":
return greet
else:
return welcome
a = hi()
print(a())
相关文章
- C语言学习笔记--函数与指针
- python自动化 协程函数、二分查找、模块搜索
- jQuery的$.get()函数不执行以及php端报错Uncaught Error: Call to a member function bind_param() on boolean in...
- Mysql5.7自定义函数递归报错1424 Recursive stored functions and triggers are not allowed
- 比较好用的php函数
- c函数创建文件和路径
- MySQL自定义函数与存储过程的创建、使用、删除
- 归纳整理Linux下C语言常用的库函数----文件操作
- 拥抱函数式编程 I - 基本概念
- 在论坛中出现的比较难的sql问题:29(row_number函数 组内某列的值连续出现3次标记出来)