代码示例:
package main
import (
"fmt"
)
func main(){
name := "Alice"
age := 25
fmt.Sprintf("66 My name is %s and I am %d years old.", name, age)
fmt.Printf("88 My name is %s and I am %d years old.\n", name, age)
}
代码示例:
package main
import (
"fmt"
)
func main(){
name := "Alice"
age := 25
fmt.Sprintf("66 My name is %s and I am %d years old.", name, age)
fmt.Printf("88 My name is %s and I am %d years old.\n", name, age)
}