今天在刷一道算法题时,突然遇到StringBuilder作为形参和String作为形参时,最终得出来的结果不同.故尝试了几个demo看看它们之间的区别. 当String类型作为参数时, public class Test { public static void main(String[] args) { String sb=new String(); Test.TestString(sb); System.out.println("实参为: "+sb.toString()); } p…
using UnityEngine; using System.Diagnostics; using System.Text; using UnityEngine.UI; public class simpleTest : MonoBehaviour { System.TimeSpan t1; System.TimeSpan t2; /// <summary> /// Main()会被UNITY调用!,只要名字是Main(),不管是public, static, void, int /// 当…