從python 2.6開始,可以使用format對string格式化. 用法1:使用{} ... s = 'Using {0[0]}: {0[1]} {0[2]}!'.format(list). print s.
確定! 回上一頁