嵌套循环加入列表解析确实高效
[(x,y) for x in range(5) if x % 2==0 for y in range(5) if y % 2 ==1]
列表解析
原文:http://www.cnblogs.com/biopy/p/4946251.html