📅  最后修改于: 2022-03-11 14:48:50.652000             🧑  作者: Mango
string x = "Test1234";
Console.WriteLine(x.EndsWith("1234"));
//Output: true
string y = "Test1234 test2";
Console.WriteLine(y.EndsWith("test2"));
//Output: true