Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- count = 0
- delay = 60
- end = time.time() + delay
- start = time.time()
- countplus = 1000000
- countmark = countplus
- while start + delay > time.time():
- count += 1
- if count == countmark:
- strlen = len(str(count))
- countmark = countmark + countplus
- countlst = []
- countlst.append(count)
- count = str(count)
- if strlen == 4 or strlen == 5 or strlen == 6:
- print(count[:-3], ',', count[-3:])
- count = int(count)
- if strlen == 7 or strlen == 8 or strlen == 9:
- print(count[:-6], ',', count[-6:-3], ',', count[-3:])
- count = int(count)
- print(time.time() - start)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement