Advertisement
Guest User

Untitled

a guest
Jul 5th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def my_print(*args, **kwargs):
  2. with open('output_file', 'w') as OUT:
  3. print(*args, **kwargs, file=OUT)
  4.  
  5. print('hui')
  6. my_print('pizda')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement