%s 代表字串,{} 亦表示字串, 在{} 中可加入數字,可指定輸出的字串上例中若寫成print('{1} {0}'.format('Hello', 'world!!')) , 會輸出 world!!
確定! 回上一頁