This is elementary I guess:
Let's consider this snippet:
for i in range(3):
sys.stdout.write(str(i) + '
')
out:
0
1
2
and this:
for i in range(3):
sys.stdout.write(str(i) + sys.argv[1])
out (after passing
as argument):
0
1
2
So, how can I pass new-line as argument?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…