str.format() method 的基本用法如下:. >>> >>> print('We are the {} who say "{}!"'.format('knights', 'Ni')) We are the knights who say "Ni!".
確定! 回上一頁