在 Console.Write输出中的问题

Console.Write("{0,-4}",m );
这个语句中,m是要输出的变量,那么双引号花括号里的0和-4是什么意思?

这种问题要善于看msdn

https://msdn.microsoft.com/zh-cn/library/system.string.format.aspx

控制对齐方式
默认情况下,字符串是其字段中左对齐,如果指定字段宽度。 若要右对齐字段中的字符串,则前面加加个负号的字段宽度如 {0,-12} 来定义 12 个字符右对齐字段。
下面的示例类似于前一个,只是右对齐标签和数据。

 int[] years = { 2013, 2014, 2015 };
int[] population = { 1025632, 1105967, 1148203 };
String s = String.Format("{0,-10} {1,-10}\n\n", "Year", "Population");
for(int index = 0; index < years.Length; index++)
   s += String.Format("{0,-10} {1,-10:N0}\n",
                      years[index], population[index]);
// Result:
//    Year       Population
//
//    2013       1,025,632
//    2014       1,105,967
//    2015       1,148,203

例子写的很清楚。

0是第一个参数,要被m取代,-4是对齐方向,参考
http://m.baidu.com/from=1000953b/bd_page_type=1/ssid=0/uid=0/pu=usm%400%2Csz%401320_1002%2Cta%40iphone_2_4.3_2_5.8/baiduid=54B0A2661827F848569EB1F31256A59E/w=0_10_c%23%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%A0%BC%E5%BC%8F%E5%8C%96/t=iphone/l=3/tc?ref=www_iphone&lid=8874560959942130115&order=1&vit=osres&tj=www_normal_1_0_10_title&m=8&srd=1&cltj=cloud_title&dict=20&title=%E4%BD%BF%E7%94%A8C%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%AD%97%E7%AC%A6%E4%B8%B2%7E-%E7%A4%BC%E6%8B%9C%E4%B8%80-%E5%8D%9A%E5%AE%A2%E5%9B%AD&sec=6301&di=4c64fd564bc5a72e&bdenc=1&tch=124.0.0.0.0.0&nsrc=IlPT2AEptyoA_yixCFOxXnANedT62v3IEQGG_ytK1DK6mlrte4viZQRASCb80XWOCoCb9m3QgcVMhiGu0VAo7RJAu_9Ssmkq7UfcdOnq6RyAHBYNfxsw4tv3