111,120
社区成员
发帖
与我相关
我的任务
分享字符串.Substring(起始位置,截取长度)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication10
{
class Program
{
static void Main(string[] args)
{
string a = "abcd";
Console.Write( a.Substring(0, 1));
Console.ReadKey();
}
}
}