我是新手.刚刚学会fmt.Println()
的各种用法.我try 了以下方法,但得到了意想不到的结果.请解释我在理解上哪里出了错.
input: fmt.Println("hi\b", "there!")
output: hi� there!
expected: h there!
input: fmt.Println("hi", '\b', "there!")
output: hi 8 there!
expected: hithere!
... assuming runes are not appended with spaces
input: fmt.Println("hi", "\bthere!")
output: hi �there!
expected: hithere!
(注意:上面的占位符字符已被U+FFFD替换,因为原始字符在不同环境中的渲染不一致.)