📅  最后修改于: 2022-03-11 14:49:02.889000             🧑  作者: Mango
public static void Main()
{
Dictionary dict = new Dictionary()
{
{"1", "one"},
{"2", "two"},
{"3", "three"}
};
string key = KeyByValue(dict, "two");
Console.WriteLine("Key: " + key);
}