``` go
func Rem(a []string) (ret []string) {
now:=time.Now()
sort.Strings(a)
finish:=time.Since(now)
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
sss:=strconv.FormatInt(int64(finish),10)
fmt.Printf("%s",sss)
fmt.Println("sss:"+sss)
aaa:=int64(finish)
fmt.Println(aaa)
fmt.Println(int64(finish))
fmt.Println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
return ret
}
```
sss和aaa打印出来就是零,但是调试的时候sss和aaa明明就是有值的啊
我后来也发现了,调试的时候有值是因为我调试有间隔,怪不得值都是几秒钟那种,但是直接运行为什么是零,直接打印finish就是零,按理来说肯定有值啊,毕竟单位是纳秒
#4
更多评论