// 1.创建空对象
const obj = {}
// 2.遍历数组
array.forEach((element) => {
let key = Symbol(element)
obj[key] = element
})
return obj