Write a Python program to print to STDERR.
1 2 3 4 5 6 7 |
from __future__ import print_function import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) eprint("abc", "efg", "xyz", sep="--") |
1 2 3 4 5 6 7 |
from __future__ import print_function import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) eprint("abc", "efg", "xyz", sep="--") |