#!/usr/bin/env python
# -*- coding:utf-8 -*-

__Author__ = "HackFun"
__Date__ = '2017/9/28 11:44'


from random import randint
import time

# # 列表解析
# data = [randint(-10, 10) for _ in xrange(10)]
#
# print data
#
# # 方法1
# res = filter(lambda x: x >= 0, data)
# print res
# # 方法2，这个快一点
# res = [x for x in data if x >= 0]
# print res
#
#
# # 字典解析
# d = {x: randint(60, 100) for x in xrange(1, 21)}
#
# print d
#
# res = {k: v for k, v in d.iteritems() if v > 90}
#
# print res
#
#
# # 集合解析
# data = [randint(-10, 10) for _ in xrange(10)]
# print data
# s = set(data)
# res = {x for x in s if x % 3 == 0}
# print res







66e806f6400852546f22a806057c0743be0dfb13
<mask token>

__Author__ = 'HackFun'
__Date__ = '2017/9/28 11:44'
<mask token>

__Author__ = 'HackFun'
__Date__ = '2017/9/28 11:44'
from random import randint
import time

#!/usr/bin/env python
# -*- coding:utf-8 -*-

__Author__ = "HackFun"
__Date__ = '2017/9/28 11:44'


from random import randint
import time

# # 列表解析
# data = [randint(-10, 10) for _ in xrange(10)]
#
# print data
#
# # 方法1
# res = filter(lambda x: x >= 0, data)
# print res
# # 方法2，这个快一点
# res = [x for x in data if x >= 0]
# print res
#
#
# # 字典解析
# d = {x: randint(60, 100) for x in xrange(1, 21)}
#
# print d
#
# res = {k: v for k, v in d.iteritems() if v > 90}
#
# print res
#
#
# # 集合解析
# data = [randint(-10, 10) for _ in xrange(10)]
# print data
# s = set(data)
# res = {x for x in s if x % 3 == 0}
# print res






