大约有 781 项符合查询结果(耗时:0.0030秒) [XML]

https://stackoverflow.com/ques... 

Why is it slower to iterate over a small string than a small list?

...T 0 (None) #>>> 20 RETURN_VALUE This produces just 9 LOAD_CONST 6 (('a', 'b', 'c')) as tuples are immutable. Test: >>> python3 -m timeit '[x for x in ("a", "b", "c")]' 1000000 loops, best of 3: 0.369 usec per loop Great, back up to ...