🌈 搜索
📅  最后修改于: 2022-03-11 14:48:43.411000             🧑  作者: Mango
string myFilePath = @"C:\MyFile.txt"; string ext = Path.GetExtension(myFilePath); // ext would be ".txt"