gpt4 book ai didi

go - fmt.Print() 是否写入 GoLang 中的标准输出?

转载 作者:IT老高 更新时间:2023-10-28 13:02:36 29 4
gpt4 key购买 nike

我可能想太多了,但是在 GoLang 中,fmt.Print() 是写入标准输出还是必须使用 os.Stdout.Write

最佳答案

来自 the documentation :

Print formats using the default formats for its operands and writes to standard output.

是的,它写入标准输出。

关于go - fmt.Print() 是否写入 GoLang 中的标准输出?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28033734/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com