using System;
using System.Collections.Generic;
using System.Text;
namespace 添加空格
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请输入一段文字");
string say = Console.ReadLine();
Console.WriteLine(say.PadLeft(20)); //表示如果一个字符串的长度小于指定的值,则在字符串的左侧(也就是前面)用指定的字符填充
Console.ReadKey();
}
}
}