标签:python
常用函数考察:dict(zip(('a','b','c','d','e'),(1,2,3,4,5))) range(10) sorted([i for i in range(10)]) { i:i*i for i in range(10) if i%/2==1 } [ [i,i*i] for i in range(10)]
函数参数考察:
(xl=[]): i (x): l.append(i*i) l f() f([]) f() f()
闭包用法考察:
(): [x: x*i i ()][m() m lamb()]
考察基本功。
标签:python
原文地址:http://blog.51cto.com/devops9527/2050461