yar999
Go语言圣经

Updated 2 years ago

cloudnuy (@cloudnuy) started discussion #26

2 years ago · 0 comments

Open

dup1的格式字符串中还含有制表符\t和换行符\n。字符串字面上可能含有这些代表不可见字符的转义字符(escap sequences)。默认情况下,Printf不会换行。按照惯例,以字母f结尾的格式化函数,如log.Printf和fmt.Errorf,都采用fmt.Printf的格式化准则。而以ln结尾的格式化函数,则遵循Println的方式,以跟%v差不多的方式格式化参数,并在最后添加一个换行符。(译注:后缀f指fomart,ln指line。)

查找重复的行 (Edit this file)

fomart => format

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant