标签:sum printf col span pre 数据类型 IV port style
类型转换用于将一种数据类型的变量转换为另外一种类型的变量
package main import "fmt" func main() { var sum int = 17 var count int = 5 var mean float32 mean = float32(sum)/float32(count) // 类型转换 fmt.Printf("mean 的值为: %f\n",mean) }
标签:sum printf col span pre 数据类型 IV port style
原文地址:https://www.cnblogs.com/liufei1983/p/9194804.html