Day1,string字符串操作(不要再直接stra+strb了)

这里只放结论,一切str变量在做相加的时候来处理性能都是不好的,
这里应该用stringbuilder,或者直接使用简单的string.format 来达到最好的性能效果

具体使用string.format详情,查看微软MSDN:
https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-6.0
学习博客:
https://www.cnblogs.com/farmer-y/p/7919222.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章