請注意,本人言論不代表本校或本班立場。
h=160 w=55.22 print('My height is {:10.2f}'.format(h) + ' CM.\nMy weight is {:10.2f}'.format(w)+' KG.')
My height is 160.00 CM. My weight is 55.22 KG.
{:10.2f}