This is elementary I guess:
Let's consider this snippet:
for i in range(3):
sys.stdout.write(str(i) + '\n')
out:
0
1
2
and this:
for i in range(3):
sys.stdout.write(str(i) + sys.argv[1])
out (after passing \n as argument):
0\n1\n2\n
So, how can I pass new-line as argument?
sys.stdout.write(str(i) + sys.argv[1].decode("string_escape"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With