主页
Go
Go 输出函数
demo_output6
运行 ❯
×
更改方向
保存代码
更改主题
package main import ("fmt") func main() { var i string = "Hello" var j int = 15 fmt.Printf("i has value: %v and type: %T\n", i, i) fmt.Printf("j has value: %v and type: %T", j, j) }
i has value: Hello and type: string j has value: 15 and type: int