string.Format("{0,-50}", "qqqqqqqqqqqq")

            //sss={"100"}。有两个花括号
            string sss = string.Format("{{\"100\"}}", 100);

            //string.Format("{0,向(正为右,负为左)对齐的字符串长度}","展示的字符串"); 
            string s = string.Format("{0,-50}", "qqqqqqqqqqqq")+string.Format("{0,-30}", "wwwwwwwwwwwww");
            string ss = string.Format("{0,-50}", "qqq") +string.Format("{0,-30}", "wwwwwwwwwwwww");

 

posted @ 2017-06-17 16:46  冲天小肥牛  阅读(296)  评论(0编辑  收藏  举报