Advertisement
mengyuxin

meng.splitSample.py

Dec 31st, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #splitSample.py
  2. #import pprint
  3.  
  4. spam = '''Dear Alice,
  5. How have you benn? I am fine.
  6. There is labeled "Milk Experiment".
  7.  
  8. Please do not drink it.
  9. Sincerely,
  10. Bob'''
  11.  
  12. list1 = spam.split('\n')
  13. #pprint.pprint(list1)
  14.  
  15. print(spam)
  16. print(list1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement