print '%s+%d' % ('abc', 123) #abc+123 print '%o' % 10 #12 八進位制. 為%d指定長度,%05d,如果數字小於5位會在左邊補0,大於指定長度時不受此影響.
確定! 回上一頁