fmt.Sprintf("%06v", rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000)) 上面是生成6位数的随机数,想要多少位%v中间就写几