[Go] Go语言中的常量定义方法 →→→→→进入此内容的聊天室

来自 , 2021-04-07, 写在 Go, 查看 126 次.
URL http://www.code666.cn/view/cf9a063b
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. const Pi = 3.14
  6.  
  7. func main() {
  8.         const World = "世界"
  9.         fmt.Println("Hello", World)
  10.         fmt.Println("Happy", Pi, "Day")
  11.  
  12.         const Truth = true
  13.         fmt.Println("Go rules?", Truth)
  14. }
  15.  
  16.  
  17.  

回复 "Go语言中的常量定义方法"

这儿你可以回复上面这条便签

captcha