从某个类型中挑出一些属性出来 type Person = { name: string; age:number; gender:string}type P1 = Pick<Person, "name" | "age">; // { name: string; age: number; }const user:P1={ name:'树哥', age:18}