Home > other >  Beginners python, want to consult as shown in figure format method format control problem...
Beginners python, want to consult as shown in figure format method format control problem...

Time:10-01



As shown in figure, graph output by} {: 3.0 f 0,10,20,30 etc. Why is right-aligned rather than left ah, should not be left by default:

CodePudding user response:

Top!!!!!!!!!!!!!!

CodePudding user response:

No right, is the default left alignment... 3.0 f said the integer part of the three, the decimal accounted for 0, so no matter how many bit integer, will occupy the three characters, why not start from high rank, you contact the reality will understand...
  • Related