不是没有格式化字符串;通常的方法是使用fmt.Printf或fmt.Sprintf:srcdir := "aaa"dstdir := "bbb"// separated out Sprintf and Println for clarityfmt.Println(fmt.Sprintf("SRCDIR = %s", srcdir))fmt.Println(fmt.Sprintf("DSTDIR = %s", dstdir))// could be shortened if you're just printing themfmt.Printf("SRCDIR = %s\n", srcdir)fmt.Printf("DSTDIR = %s\n", dstdir)