比如说我随机创建一个-10,10的一个列表,并且筛选出所有大于0的数
from random import randint data = [randint(-10,10) for _ in range(10)]
2016-12-07 11:13:33
皖ICP备14007051号-2