#lambda 匿名函数,左面是参数(可选),右面是表达式或返回值,通过l() j进行调用
l = lambda :100
l1 = lambda x : x**2
shoulu = {'www.baidu.com' : 100 , 'www.sogou.com' : 200 , 'www.so.com':50 }
#sorted内置函数,可以对所有可迭代函数进行排序,sort只可以对列表函数进行排序
print(sorted(shoulu.items(),key=lambda x : x[1]))