Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_str_chunk_demo.py
- import re
- import random
- import string
- ppp = (string.ascii_letters+string.digits+' ')
- ttt = ''.join([random.choice(ppp) for z in 'z'*10000])
- print(ttt)
- print('')
- zzz = re.sub(r'\s+', '', ttt)
- for i in range(0, len(zzz), 80):
- print(zzz[i:i+80])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement