bash 连接和追加的区别
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12564454/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Difference between Concatenation and Append
提问by VAR121
What is the basic and essential difference between Concatenate and Append
Concatenate 和 Append 的基本和本质区别是什么
采纳答案by Ignacio Vazquez-Abrams
"Concatenate" joins two specific items together, whereas "append" adds what you specify to whatever may already be there.
“连接”将两个特定项目连接在一起,而“附加”将您指定的内容添加到可能已经存在的任何内容中。
回答by user1529342
When use Concator appendon two strings they both may give you same result when you output them
but the
main difference is on using concatenation new string object is created where as its not the same in case of StrinBuffer APPEND()
当使用Concat或append在两个字符串上时,它们都可能在您输出它们时给您相同的结果,但主要区别在于使用连接新字符串对象被创建,因为它在情况下不同StrinBuffer APPEND()

