Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用将达到 100,000 的迭代器创建一个列表
['guid:0','guid:2', .....'guid:100000']
Python是最python的方法吗?一个班轮...
蟒蛇2:['guid:%d' % i for i in xrange(0, 100002, 2)]
['guid:%d' % i for i in xrange(0, 100002, 2)]
蟒蛇3:['guid:%d' % i for i in range(0, 100002, 2)]
['guid:%d' % i for i in range(0, 100002, 2)]