String.Format用法

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Format : MonoBehaviour {
    string[] MM = new string[] {"字段1","字段2","字段3" };
// Use this for initialization
void Start () {
        Debug.Log(string.Format("{0}{1}{2}", MM ));
}
}
posted @ 2018-06-08 17:17  低小调  阅读(51)  评论(0)    收藏  举报