判断字符串是否为纯数字 //方法一,将字符串转为int64类型,不能成功则不是纯数字 func isNum1(s string)bool{ _,err := strconv.ParseFloat(s,64) if err != nil{