与Pick相反,Omit 从T中取出除去K的其他所有属性。 interface Person { name: string, age: number, gender: string}type P1 = Omit<Person, "age" | "gender">const user:P1 = { name: '树哥'}