Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from timeit import Timer
- for n in range(30) :
- t = Timer ('re.match("a?"*'+str(n)+' + "a"*'+str(n)+' , "a"*'+str(n)+' )', "import re")
- print("n = " + str(n) + "\ttime = " + str(t.timeit(1)))
Advertisement
Add Comment
Please, Sign In to add comment