C# startswith与endswith
startswith():判断字段由什么开始的。endswith():判断字段由什么结束的。var replace = "!hello,welcome to New York city!"; Console.WriteLine(replace); if (replace.StartsWith("!")) { ...