英文:
Go: Meaning of the 'fmt' package acronym
问题
在Golang中,"fmt"这个缩写代表什么意思?"fmt"是一个提供I/O函数(如Println
)的包(可以使用import "fmt"
导入)。
我猜"f"代表格式化,但找不到确切的答案。
英文:
What does the "fmt" acronym mean in Golang? "fmt" is a package that provides I/O functions like Println
(you can import it with import "fmt"
).
I suppose that the "f" means formatting but can't find a proper answer.
答案1
得分: 56
fmt
是格式化的缩写。来自文档
fmt
包实现了类似于C语言的printf
和scanf
的格式化输入输出。格式化的“动词”源自C语言,但更简单。
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论