Noticed interesting thing: python startswith is 2 times slower then ==: In [1]: k = "123123123" In [2]: %timeit k[0] == "_" 50.1 ns ± 1.83 ns per…
確定! 回上一頁