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の方法ですか? ワンライナー...
python2:['guid:%d' % i for i in xrange(0, 100002, 2)]
['guid:%d' % i for i in xrange(0, 100002, 2)]
python3:['guid:%d' % i for i in range(0, 100002, 2)]
['guid:%d' % i for i in range(0, 100002, 2)]