2023年1月14日

go 格式化输出

摘要: 直接上代码: package main import "fmt" func main() { // %s s1 := "hello" s2 := []byte("world") fmt.Printf("string: %s, slice: %s\n", s1, s2) // string: hell 阅读全文

posted @ 2023-01-14 14:41 进击的davis 阅读(25) 评论(0) 推荐(0) 编辑

导航