变量 转换

package main

import (
    "fmt"
    "strconv"
)

func main() {
    var a int = 65
    b := strconv.Itoa(a)
    a, _ = strconv.Atoi(b)
    fmt.Println(a)
}

 

posted @ 2017-10-31 21:42  Erick-LONG  阅读(143)  评论(0编辑  收藏  举报