printing
Node.js
console.log('hello world')
console.log('hello %s', 'world')
console.log('hello %d %s', 5, 'worlds')
Output
hello world
hello world
hello 5 worlds
Go
package main
import "fmt"
func main() {
fmt.Println("hello world")
fmt.Printf("hello %s\n", "world")
fmt.Printf("hello %d %s\n", 5, "worlds")
}
Output
hello world
hello world
hello 5 worlds
当前内容版权归 miguelmota 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 miguelmota .