1
yjmade 2015-07-14 11:51:57 +08:00
In [11]: %timeit a.find("ab")
1000000 loops, best of 3: 312 ns per loop In [13]: %timeit "ab" in a 10000000 loops, best of 3: 72.3 ns per loop 明显 in 更好 啊 |