
This is the output

Ask the great spirit of advice on how to make the output to maintain alignment results three lines?
Thank you very much!!!!!!
CodePudding user response:
Because your name is not the same as the length, so for not neat, the first line and second line sent a \ t, if you want to align,Please use the placeholder width symbols
Print (" % s \ t % 15 s 18 \ t % 12 s \ \ t t % 22 s % s "% (... ))