要列印 % 符號,您需要使用另一個 % 符號“轉義”它: percent = 12 print "Percentage: %s %%\n" % percent # Note the double % sign >>> Percentage: ...
確定! 回上一頁