# -*- coding: utf-8 -*-
"""
Created on Tue Nov 19 20:18:15 2019

@author: user
"""

print('姓名:{},年齡:{}'.format('John',30))

print('姓名:{0},年齡:{1},本名:{0}'.format('John',30))

print('金額:{:,}元'.format(1000000)) #,千分位

print('利率:{0:.2f},利率:{0:.3f}'.format(3.1415926))

print('公司:{:10s},樓層:{:5d}'.format('聯成',3))
