摘要: 一:复习巩固题 1、以下格式自行推导至少10遍 def index(x,y): print(x,y) def wrapper(*args,**kwargs): # args=(1,2) kwargs={"a":1,"b":2} index(*args,**kwargs) # index(1,2,a= 阅读全文
posted @ 2020-06-17 22:50 为了等 阅读(118) 评论(0) 推荐(0) 编辑
摘要: python函数之进阶 1:函数嵌套 一:什么是函数嵌套 在一个函数内又定义了另外一个函数 二:函数定义 def foo(): def bar() print('from bar') bar() foo() # 这个是通过foo函数调用里面的bar函数 def foo(): def f2(): pr 阅读全文
posted @ 2020-06-17 22:37 为了等 阅读(164) 评论(0) 推荐(0) 编辑