從python 2.6開始,可以使用format對string格式化. 用法1:使用{}. Plain text ... s = 'Using {type}: {s1} {s2}!'.format(**dict). print s.
確定! 回上一頁