2013-04-28 83 views

回答

12

使用"%0xd"標誌爲,其中是要填充的前導零的數量。

import "fmt" 
fmt.Printf("%03d", 4) // will print "004" 

的接口是相同C.