获取指定 key 的值。
key 要获取的键名。 type 期望的类型(如 int、String 等)。 返回对应类型的值。
key
type
T getValue<T>(String key, Type type);