text = 'world' print('hello %s' % text) # hello world. 若是希望把內容轉成十六進位的話可以使用: print('%x' % 23) # 17. 若是有多個變數要替換 ...
確定! 回上一頁