I also want to arrange the row with \n to the right, but when I used rjust, only the first line was aligned. How can't the columns that go down also align to the right?
python
Why don't you split it into \n
and use it?
str = "When you change the line\n, this is how you display\n";
for line in str.split("\n"):
print(line.rjust(50))
© 2024 OneMinuteCode. All rights reserved.