Go:“fmt”包缩写的含义 [英] Go: Meaning of the 'fmt' package acronym
本文介绍了Go:“fmt”包缩写的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Golang中的fmt首字母缩写词意味着什么? fmt是允许I / O函数(如Println)的包。
我认为f表示格式化,但找不到合适的答案。 >
以下是导入此包所需的行:
importfmt
解决方案
fmt
是格式的简写。 从文档
打包fmt使用类似于C的
printf和scanf的函数实现格式化的I / O。格式'动词'是从C派生的,但是
更简单。
What does the "fmt" acronym mean in Golang? "fmt" is package to allow I/O functions like Println.
I suppose that the "f" means formatting but can't find a proper answer.
Here is the line needed to import this package:
import "fmt"
解决方案
fmt
is short for format. From the docs
Package fmt implements formatted I/O with functions analogous to C's printf and scanf. The format 'verbs' are derived from C's but are simpler.
这篇关于Go:“fmt”包缩写的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文