摘要: def func(x): #普通函数 return x*x ret1 = func(10) print(ret1) #100 #匿名函数 f = lambda x:x*x print(f(10)) #100 # 匿名函数写法: 匿名函数名=lambda 参数:返回值 '''''' ''' sorted()函数 写法:sorted(iterable,key=func,reve... 阅读全文
posted @ 2019-11-06 08:02 王同佩 阅读(304) 评论(0) 推荐(0) 编辑