摘要: map()lists = [x for x in range(101)]#所有数都加上1print(list(map(lambda x:x+1,lists)))filter()... 阅读全文
posted @ 2019-01-22 16:44 ayang818 阅读(216) 评论(0) 推荐(0)
摘要: map()lists = [x for x in range(101)]#所有数都加上1print(list(map(lambda x:x+1,lists)))filter()... 阅读全文
posted @ 2019-01-22 16:44 ayang818 阅读(121) 评论(0) 推荐(0)
摘要: 以一个带参数的函数的装饰器为例子def debug(func): def wrapper(something): # 指定一毛一样的参数 print... 阅读全文
posted @ 2019-01-22 13:27 ayang818 阅读(103) 评论(0) 推荐(0)
摘要: 以一个带参数的函数的装饰器为例子def debug(func): def wrapper(something): # 指定一毛一样的参数 print... 阅读全文
posted @ 2019-01-22 13:27 ayang818 阅读(84) 评论(0) 推荐(0)