Home > other >  The small white to solve!!!!! Pycharm output format cannot be aligned
The small white to solve!!!!! Pycharm output format cannot be aligned

Time:09-26

This is the code I knock

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 "% (... ))
  • Related