Advertisement
Guest User

Untitled

a guest
Nov 27th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. inp = 'input'
  2. out = 'output'
  3.  
  4. inpu = open(inp, 'r')
  5. outpu = open(out, 'w')
  6.  
  7. def spliter(i, o):
  8. p = i.readlines()
  9. p.insert(0, '「')
  10. p.append('」')
  11. z = ''
  12. for x in p:
  13. z = z + x
  14.  
  15. for y in z:
  16. y = y + '&nbsp'
  17. o.write(y)
  18.  
  19. i.close()
  20. o.close()
  21.  
  22.  
  23. spliter(inpu, outpu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement