這裏只放結論,一切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