
<span style="font-size: 14px;">print</span> 在golang中是属于输出到标准错误流中并打印,官方不建议写程序的时候用它,可以在debug的时候用。

<span style="font-size: 14px;">fmt.print</span> 在golang中是属于标准输出流,一般使用它来进行屏幕输出。

<span style="font-size: 14px;">fmt.Printf</span>是格式化输出;fmt.Println是输出后换行;fmt.Sprint 是返回一个格式化的字符串。

相关文章教程:golang教程










