Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. import fileinput
  2. for line in fileinput.input(files=["test.txt"],inplace=True):
  3. print(line.replace("toto","toto tutu"),end="")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement