Python Programming https://www.youtube.com/watch?v=N4mEzFDjqtA&index=34&list=WL Around 08:00
You're probably saying, "Insert a five-line line break."
print('\n' * 5)
test.py
print "start"
print('\n' * 3)
print "end"
result
Success time: 0.02 memory: 44632 signal:0
start
end
I feel that there are many line breaks on one line.
In other words
print('\n' * 3)
In that case, in addition to the three line breaks, the line breaks of the print itself will be inserted.
If you add a comma at the end as print ('\ n'* 3),
, you will get only 3 line breaks, but I don't know if the code is easy to read.
http://ideone.com/F0Ky6U
Link http://qiita.com/7of9/items/ac371b545213d2862bc8
Recommended Posts