SHARE
TWEET

Untitled

a guest Jul 29th, 2011 47 Never
  1. >>> import timeit
  2. >>> t = timeit.Timer('"abc" + "123"')
  3. >>> t.timeit()
  4. 0.10069966993011681
  5. >>> t2 = timeit.Timer('"".join(("abc", "123"))')
  6. >>> t2.timeit()
  7. 0.44369074840517442
RAW Paste Data
Top