package main import ( "fmt" "strconv" ) func main() { var a int = 65 b := strconv.Itoa(a) a, _ = strconv.Atoi(b) fmt.Println(a) }
变量 转换
原文:http://www.cnblogs.com/Erick-L/p/7763898.html