using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CShapeTest
{
class Start
{
static void Main(string[] args)
{
Console.WriteLine("阅读下面这首诗:");
String str = "花开百日研,\n一朝逢霜落。\n神已飘伶仃,\n更兼尘归堕。";
String str1 = str.Substring(0, 1) + str.Substring(11, 1) + str.Substring(14, 1) + str.Substring(25, 1);
Console.WriteLine(str);
Console.WriteLine("诗的大概意思是:{0}", str1);
Console.ReadLine();
}
}
}
C#_字符串截取Substring实例方法
最新推荐文章于 2024-01-27 14:45:59 发布