(→개요) |
잔글 (Jmnote님이 Go Println() 문서를 Go fmt.Println() 문서로 이동했습니다) |
(차이 없음)
|
2023년 1월 27일 (금) 01:54 판
1 개요
- Go Println()
- Go fmt.Println()
- "print line"
- Go Print() 후 개행문자 추가
Go
Copy
package main
import "fmt"
func main() {
fmt.Println("hello") // hello
fmt.Println("hello" + "world") // helloworld
fmt.Println("hello", "world") // hello world
fmt.Println("1+1=", 1+1) // 1+1= 2
fmt.Println("8.0/3.0=", 8.0/3.0) // 8.0/3.0= 2.6666666666666665
fmt.Println("9.0/3.0=", 9.0/3.0) // 9.0/3.0= 3
fmt.Println(true) // true
fmt.Println(false) // false
fmt.Println(nil) // <nil>
}
Loading
2 같이 보기
3 참고
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.