摘要: #coding:utf-8 #join() #用 join() 函数将 key 中的每个元素用逗号连接。 a={1:1,2:2,3:3} n=a.keys() #b是字符或者数字都可以 b='插入的东西' print b.join(str(n) for n in a.keys()) #lambda 匿名函数 #例子area=lambda b,h:0.5*b*hdef area(b,h): r... 阅读全文
posted @ 2017-09-16 18:11 慕小柒 阅读(137) 评论(0) 推荐(0) 编辑