Advertisement
here2share

# b_str_chunk_demo.py

Dec 30th, 2021
1,196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # b_str_chunk_demo.py
  2.  
  3. import re
  4. import random
  5. import string
  6.  
  7. ppp = (string.ascii_letters+string.digits+'      ')
  8. ttt = ''.join([random.choice(ppp) for z in 'z'*10000])
  9.  
  10. print(ttt)
  11. print('')
  12.  
  13. zzz = re.sub(r'\s+', '', ttt)
  14.  
  15. for i in range(0, len(zzz), 80):
  16.     print(zzz[i:i+80])
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement