标签:imp pack 类型转换 输出 func oat isp print fun
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) }
输出
mean 的值为: 3.400000
标签:imp pack 类型转换 输出 func oat isp print fun
原文地址:https://www.cnblogs.com/sea-stream/p/10333122.html